A compound of formula: wherein R 1 is NR a R b or NR a CH2R b, wherein R a and R b are independently selected from H, methyl, ethyl, propyl, CF3, optionally substituted cyclopropyl, optionally substituted cyclobutyl, optionally substituted cyclopentyl, optionally substituted cyclohexyl, optionally substituted phenyl, optionally substituted benzyl, optionally substituted pyridinyl, pyrazole, imidazole, furan, benzodioxol, optionally substituted oxadiazole, thiazole, and thiophene, wherein the optional substituents are independently selected from halo, methyl, cyclopropyl and CN, optionally wherein R 1 is NR a CH2R b and the methylene group is substituted with CF3; or wherein R 1 is NR a R b and R a and R b together form an optionally substituted C3-C9 heterocycle together with the N to which they are attached; R 2 and R 3 are independently selected from H, and C1-C6 alkyl, or together form a C3-C6 cycloalkyl or C3-C6 heterocycloalkyl with the carbon to which they attached; X is CR 4a, wherein R 4a is selected from H, optionally substituted C1-C6 alkyl and halo; Y is CR 5, wherein R 5 is selected from H, halo, optionally substituted C1-C6 alkyl, optionally substituted C3-C6 cycloalkyl, optionally substituted C5-C8 aryl, optionally substituted C6-C9 arylalkyl, optionally substituted C3-C8 heteroaryl, CH2OH, NR'R", NS R'R", SO2R', C R', COR', C OR', C NR'R", OR', wherein R' and R" are independently selected from H, C1-C6 alkyl, C5-C8 aryl, C6-C9 arylalkyl, and C3-C8 heteroaryl; Z is N or CR 7, wherein R 7 is selected from H, halo, C1-C6 alkyl, C2-C6 alkene, C2-C6 alkyne, C3-C6 cycloalkyl, optionally substituted C3-C6 heterocycloalkyl, C5-C8 aryl, C6-C9 arylalkyl, C3-C8 heteroaryl, CN, C OR c, CONR c R d, NR c R d, NS R c R d, S (R c)NR d, SOR c, SO2R c, and SR c, wherein R c and R d are independently H, C1-C6 alkyl, C3-C6 cycloalkyl, C5-C6 aryl, C6-C9 arylalkyl, C3-C6 heteroaryl, CN, COOH, or COCH3 or R c and R d together form an optionally substituted C3-C7 heterocycle together with the heteroatom to which they are attached; M is CH or C-CH3; and the ring including X, Y and Z is aromatic; or a stereoisomer, tautomer, hydrate, N -oxide derivative or pharmaceutically acceptable salt thereof. R 1 is NR a R b or NR a CH2R b, wherein R a and R b are independently selected from H, methyl, ethyl, propyl, CF3, optionally substituted cyclopropyl, optionally substituted cyclobutyl, optionally substituted cyclopentyl, optionally substituted cyclohexyl, optionally substituted phenyl, optionally substituted benzyl, optionally substituted pyridinyl, pyrazole, imidazole, furan, benzodioxol, optionally substituted oxadiazole, thiazole, and thiophene, wherein the optional substituents are independently selected from halo, methyl, cyclopropyl and CN, optionally wherein R 1 is NR a CH2R b and the methylene group is substituted with CF3; or wherein R 1 is NR a R b and R a and R b together form an optionally substituted C3-C9 heterocycle together with the N to which they are attached; R 2 and R 3 are independently selected from H, and C1-C6 alkyl, or together form a C3-C6 cycloalkyl or C3-C6 heterocycloalkyl with the carbon to which they attached; X is CR 4a, wherein R 4a is selected from H, optionally substituted C1-C6 alkyl and halo; Y is CR 5, wherein R 5 is selected from H, halo, optionally substituted C1-C6 alkyl, optionally substituted C3-C6 cycloalkyl, optionally substituted C5-C8 aryl, optionally substituted C6-C9 arylalkyl, optionally substituted C3-C8 heteroaryl, CH2OH, NR'R", NS R'R", SO2R', C R', COR', C OR', C NR'R", OR', wherein R' and R" are independently selected from H, C1-C6 alkyl, C5-C8 aryl, C6-C9 arylalkyl, and C3-C8 heteroaryl; Z is N or CR 7, wherein R 7 is selected from H, halo, C1-C6 alkyl, C2-C6 alkene, C2-C6 alkyne, C3-C6 cycloalkyl, optionally substituted C3-C6 heterocycloalkyl, C5-C8 aryl, C6-C9 arylalkyl, C3-C8 heteroaryl, CN, C OR c, CONR c R d, NR c R d, NS R c R d, S (R c)NR d, SOR c, SO2R c, and SR c, wherein R c and R d are independently H, C1-C6 alkyl, C3-C6 cycloalkyl, C5-C6 aryl, C6-C9 arylalkyl, C3-C6 heteroaryl, CN, COOH, or COCH3 or R c and R d together form an optionally substituted C3-C7 heterocycle together with the heteroatom to which they are attached; M is CH or C-CH3; and the ring including X, Y and Z is aromatic; or a stereoisomer, tautomer, hydrate, N -oxide derivative or pharmaceutically acceptable salt thereof.