A compound of formula, or a pharmaceutically acceptable salt thereof, wherein Z is selected from the group consisting of -(CH 2) m -, -O(CH 2) m - and -NR 6 (CH 2) m -; and where m is an integer from 1-3; W is CH, CR 7 or N; R is a cyclic group selected from the group consisting of phenyl, naphthalenyl, benzodioxolyl, benzofuranyl, benzothiophenyl, thiophenyl, quinolinyl, cyclohexyl, furanyl, pyrazolyl, tetrahydropyranyl, and indazolyl; R 1 and R 2 combine the nitrogen to which they are attached to form a piperazinyl, wherein said piperazinyl is optionally substituted with a substituent selected from the group consisting of -C CH=CH 2, -C CH=CHCH 2 N(CH 3) 2, and or R 1 is selected from the group consisting of H or alkyl and R 2 is a pyrrolidinyl, a piperidinyl, or a phenyl, wherein said pyrrolidinyl is optionally substituted with a substituent selected from the group consisting of -C CH=CH 2,-C CH=CHCH 2 N(CH 3) 2, -C CH=CHCH 2 NH(CH 3), -C CH=CHCH 3, wherein said piperidinyl is optionally substituted with -C CH=CH 2, and wherein said phenyl is optionally substituted with halogen, nitro, cyano, thiocyanato, cyanato, hydroxyl, alkyl, haloalkyl, alkoxy, haloalkoxy, amino, alkylamino, dialkylamino, formyl, alkoxycarbonyl, carboxyl, alkanoyl, alkylthio, alkylsuphinyl, alkylsulphonyl, carbamoyl, alkylamido, phenyl, phenoxy, benzyl, benzyloxy, heterocyclyl, or cycloalkyl group; and R 3, R 4 and R 5 are each independently selected from the group consisting of H, halogen, -CN, -CF 3, -OCF 3, -OR 9, -OCOR 10, -CO 2 R 11, -COR 12, -CONR 13 R 14, -NR 15 R 16,-NR 17 COR 18, -NR 19 SO 2 R 20, -SO w R 21, -SO 2 NR 22 R 23, alkyl, alkenyl, alkynyl, C 3 -C 8 cycloalkyl, C 3 -C 8 cycloheteroalkyl, aryl, and heteroaryl; and where w is an integer from 0-2; wherein R 6, R 7, R 9, R 10, R 11, R 12, R 13, R 14, R 15, R 16, R 17, R 18, R 19, R 20, R 21, R 22 and R 23 are each independently selected from the group consisting of alkyl, alkenyl, alkynyl, C 3 -C 8 cycloalkyl, C 3 -C 8 cycloheteroalkyl, aryl, and heteroaryl; or R 13 and R 14, R 15 and R 16, or R 22 and R 23 may combine with an atom or atoms to which they are attached to form C 3-12 cycloalkyl, 3- to 12- membered heterocyclic, C 6-12 aryl, or 5- to 12- membered heteroaryl; wherein each of the foregoing cycloheteroalkyl and heteroaryl groups may bear a substituent selected from halogen, nitro, cyano, thiocyanato, cyanato, hydroxyl, alkyl, haloalkyl, alkoxy, haloalkoxy, amino, alkylamino, dialkylamino, formyl, alkoxycarbonyl, carboxyl, alkanoyl, alkylthio, alkylsuphinyl, alkylsulphonyl, carbamoyl, alkylamido, phenyl, phenoxy, benzyl, benzyloxy, heterocyclyl, and cycloalkyl group; and wherein each of the foregoing alkyl groups may be a substituted alkyl group selected from the group consisting of haloalkyl, thioalkyl, and aminoalkyl. wherein Z is selected from the group consisting of -(CH 2) m -, -O(CH 2) m - and -NR 6 (CH 2) m -; and where m is an integer from 1-3; W is CH, CR 7 or N; R is a cyclic group selected from the group consisting of phenyl, naphthalenyl, benzodioxolyl, benzofuranyl, benzothiophenyl, thiophenyl, quinolinyl, cyclohexyl, furanyl, pyrazolyl, tetrahydropyranyl, and indazolyl; R 1 and R 2 combine the nitrogen to which they are attached to form a piperazinyl, wherein said piperazinyl is optionally substituted with a substituent selected from the group consisting of -C CH=CH 2, -C CH=CHCH 2 N(CH 3) 2, and or R 1 is selected from the group consisting of H or alkyl and R 2 is a pyrrolidinyl, a piperidinyl, or a phenyl, wherein said pyrrolidinyl is optionally substituted with a substituent selected from the group consisting of -C CH=CH 2,-C CH=CHCH 2 N(CH 3) 2, -C CH=CHCH 2 NH(CH 3), -C CH=CHCH 3, wherein said piperidinyl is optionally substituted with -C CH=CH 2, and wherein said phenyl is optionally substituted with halogen, nitro, cyano, thiocyanato, cyanato, hydroxyl, alkyl, haloalkyl, alkoxy, haloalkoxy, amino, alkylamino, dialkylamino, formyl, alkoxycarbonyl, carboxyl, alkanoyl, alkylthio, alkylsuphinyl, alkylsulphonyl, carbamoyl, alkylamido, phenyl, phenoxy, benzyl, benzyloxy, heterocyclyl, or cycloalkyl group; and R 3, R 4 and R 5 are each independently selected from the group consisting of H, halogen, -CN, -CF 3, -OCF 3, -OR 9, -OCOR 10, -CO 2 R 11, -COR 12, -CONR 13 R 14, -NR 15 R 16,-NR 17 COR 18, -NR 19 SO 2 R 20, -SO w R 21, -SO 2 NR 22 R 23, alkyl, alkenyl, alkynyl, C 3 -C 8 cycloalkyl, C 3 -C 8 cycloheteroalkyl, aryl, and heteroaryl; and where w is an integer from 0-2; wherein R 6, R 7, R 9, R 10, R 11, R 12, R 13, R 14, R 15, R 16, R 17, R 18, R 19, R 20, R 21, R 22 and R 23 are each independently selected from the group consisting of alkyl, alkenyl, alkynyl, C 3 -C 8 cycloalkyl, C 3 -C 8 cycloheteroalkyl, aryl, and heteroaryl; or R 13 and R 14, R 15 and R 16, or R 22 and R 23 may combine with an atom or atoms to which they are attached to form C 3-12 cycloalkyl, 3- to 12- membered heterocyclic, C 6-12 aryl, or 5- to 12- membered heteroaryl; wherein each of the foregoing cycloheteroalkyl and heteroaryl groups may bear a substituent selected from halogen, nitro, cyano, thiocyanato, cyanato, hydroxyl, alkyl, haloalkyl, alkoxy, haloalkoxy, amino, alkylamino, dialkylamino, formyl, alkoxycarbonyl, carboxyl, alkanoyl, alkylthio, alkylsuphinyl, alkylsulphonyl, carbamoyl, alkylamido, phenyl, phenoxy, benzyl, benzyloxy, heterocyclyl, and cycloalkyl group; and wherein each of the foregoing alkyl groups may be a substituted alkyl group selected from the group consisting of haloalkyl, thioalkyl, and aminoalkyl.