The invention includes a compound of formula I; wherein R 1 , X, Z, n, and m have any of the values described herein, as well as salts of such compounds, compositions comprising such compounds, and therapeutic methods that comprise the administration of such compounds. The compounds are inhibitors of PDE4 function and are useful for improving cognitive function in animals.