A compound having the formula I or a pharmaceutically accepted salt or solvate thereof, wherein: ------ is an optional bond, provided that one and only one nitrogen of the ring is double-bonded; R 7 is selected from hydrogen, C 1 -C 10 alkyl, C 2 -C 10 alkenyl, C 2 -C 10 alkynyl, C 3 -C 10 cycloalkyl, C 3 -C 10 cycloalkylalkyl, aryl, arylalkyl, heteroaryl, heteroarylalkyl, heterocyclyl, heterocyclylalkyl, where each alkyl, alkenyl, alkynyl, cycloalkyl, aryl, heteroaryl and heterocyclyl portion is optionally substituted with one to five groups independently selected from oxo, halogen, cyano, nitro, trifluoromethyl, azido, -NR 4 SO 2 R 6, -SO 2 NR 3 R 4, -C R 3, -C OR 3, -OC R 3, -NR 4 C OR 6, -NR 4 C R 3, -C NR 3 R 4, -SO 2 R 6, -NR 3 R 4, -NR 5 C NR 3 R 4, -NR 5 C NR 3 R 4, -OR 3, aryl, heteroaryl, heterocyclyl, and heterocyclylalkyl; R 9 is hydrogen or halogen; R 1 is C 1-10 alkyl or halogen; R 10 is hydrogen; R 3 is selected from hydrogen,, C 1 -C 10 alkyl, C 2 -C 10 alkenyl, C 2 -C 10 alkynyl, C 3 -C 10 cycloalkyl, C 3 -C 10 cycloalkylalkyl, aryl, arylalkyl, heteroaryl, heteroarylalkyl, heterocyclyl, heterocyclylalkyl, where each alkyl, alkenyl, alkynyl, cycloalkyl, aryl, heteroaryl and heterocyclyl portion is optionally substituted with one to five groups independently selected from oxo, halogen, cyano, nitro, trifluoromethyl, difluoromethoxy, trifluoromethoxy, azido, or -OR'; or R 3 and R 4 together with the atom to which they are attached form a 4 to 10 membered heterocyclic ring, each of which is optionally substituted with one to three groups independently selected from halogen, cyano, nitro, trifluoromethyl, difluoromethoxy, trifluoromethoxy, azido or -OR'; R' is selected from hydrogen, C 1-10 alkyl, C 2-10 alkenyl, aryl and arylalkyl; R 4 and R 5 independently represent hydrogen or C 1 -C 6 alkyl, or R 4 and R 5 together with the atom to which they are attached form a 4 to 10 membered heterocyclic ring, each of which is optionally substituted with one to three groups independently selected from halogen, cyano, nitro, trifluoromethyl, difluoromethoxy, trifluoromethoxy, azido or -OR'; R 6 is selected from C 1 -C 10 alkyl, C 3 -C 10 cycloalkyl, aryl, arylalkyl, heteroaryl, heteroarylalkyl, heterocyclyl, heterocyclylalkyl, where each alkyl, cycloalkyl, aryl, heteroaryl and heterocyclyl portion is optionally substituted with one to five groups independently selected from oxo, halogen, cyano, nitro, trifluoromethyl, difluoromethoxy, trifluoromethoxy, azido or -OR' W is and R 8 is selected from -Cl, -Br, -F, cyano, nitro, trifluoromethoxy and C 2 alkynyl. ------ is an optional bond, provided that one and only one nitrogen of the ring is double-bonded; R 7 is selected from hydrogen, C 1 -C 10 alkyl, C 2 -C 10 alkenyl, C 2 -C 10 alkynyl, C 3 -C 10 cycloalkyl, C 3 -C 10 cycloalkylalkyl, aryl, arylalkyl, heteroaryl, heteroarylalkyl, heterocyclyl, heterocyclylalkyl, where each alkyl, alkenyl, alkynyl, cycloalkyl, aryl, heteroaryl and heterocyclyl portion is optionally substituted with one to five groups independently selected from oxo, halogen, cyano, nitro, trifluoromethyl, azido, -NR 4 SO 2 R 6, -SO 2 NR 3 R 4, -C R 3, -C OR 3, -OC R 3, -NR 4 C OR 6, -NR 4 C R 3, -C NR 3 R 4, -SO 2 R 6, -NR 3 R 4, -NR 5 C NR 3 R 4, -NR 5 C NR 3 R 4, -OR 3, aryl, heteroaryl, heterocyclyl, and heterocyclylalkyl; R 9 is hydrogen or halogen; R 1 is C 1-10 alkyl or halogen; R 10 is hydrogen; R 3 is selected from hydrogen,, C 1 -C 10 alkyl, C 2 -C 10 alkenyl, C 2 -C 10 alkynyl, C 3 -C 10 cycloalkyl, C 3 -C 10 cycloalkylalkyl, aryl, arylalkyl, heteroaryl, heteroarylalkyl, heterocyclyl, heterocyclylalkyl, where each alkyl, alkenyl, alkynyl, cycloalkyl, aryl, heteroaryl and heterocyclyl portion is optionally substituted with one to five groups independently selected from oxo, halogen, cyano, nitro, trifluoromethyl, difluoromethoxy, trifluoromethoxy, azido, or -OR'; or R 3 and R 4 together with the atom to which they are attached form a 4 to 10 membered heterocyclic ring, each of which is optionally substituted with one to three groups independently selected from halogen, cyano, nitro, trifluoromethyl, difluoromethoxy, trifluoromethoxy, azido or -OR'; R' is selected from hydrogen, C 1-10 alkyl, C 2-10 alkenyl, aryl and arylalkyl; R 4 and R 5 independently represent hydrogen or C 1 -C 6 alkyl, or R 4 and R 5 together with the atom to which they are attached form a 4 to 10 membered heterocyclic ring, each of which is optionally substituted with one to three groups independently selected from halogen, cyano, nitro, trifluoromethyl, difluoromethoxy, trifluoromethoxy, azido or -OR'; R 6 is selected from C 1 -C 10 alkyl, C 3 -C 10 cycloalkyl, aryl, arylalkyl, heteroaryl, heteroarylalkyl, heterocyclyl, heterocyclylalkyl, where each alkyl, cycloalkyl, aryl, heteroaryl and heterocyclyl portion is optionally substituted with one to five groups independently selected from oxo, halogen, cyano, nitro, trifluoromethyl, difluoromethoxy, trifluoromethoxy, azido or -OR' W is and R 8 is selected from -Cl, -Br, -F, cyano, nitro, trifluoromethoxy and C 2 alkynyl.