A compound of formula I: or a pharmaceutically acceptable salt thereof, wherein, independently for each occurrence: R 1 is H, C1-C8 alkyl, C3-C8 cycloalkyl, halo, CN, NR 8 SO 2 R 8, SO 2 R 8, SR 8, SOR 8, NR 8 COR 8, NR 8 CO 2 R 8, CON(R 8) 2, SO 2 N(R 8) 2, CF 3, heterocycloalkyl, or a straight chain, branched, or cyclic (C1-C8)-R 9 wherein up to two CH 2 units may be replaced with O, CO, S, SO, SO 2 or NR 8, or two R 1 taken together form an oxo group, or a 3 to 7 membered fused cycloalkyl ring, or a 3 to 7 membered spirocyclic ring; R 2 is H, C1-C8 alkyl, halo, C1-C8 haloalkyl, CN, OH, SO 2 R 8, SR 8, SOR 8, COR 8, CO 2 R 8, CON(R 8) 2, SO 2 N(R 8) 2, CF 3, CHF 2, or a straight chain, branched, or cyclic (C1-C8)-R 9 wherein up to two CH 2 units may be replaced with O, CO, S, SO, SO 2, CF 2, or NR 8; R 3 is H, C1-C8 alkyl, C3-C8 cycloalkyl, CO 2 R 8, COR 8, COH, CON(R 8) 2, CF 3, CH 2 CF 3, CH 2 CHF 2, or a straight chain, branched, or cyclic (C1-C8)-R 9 wherein up to two CHF 2 units may be replaced with O, CO, S, SO, SO 2 or NR 8; R 4 is H, C1-C8 alkyl, halo, C3-C8 cycloalkyl, wherein up to two CH 2 units may be replaced by O, CO, S, SO, SO 2, or NR 8, or 2 R 4 taken together form a fused 3 to 7 membered cycloalkyl ring; R 8 is H, C1-C8 alkyl, CF 3, C3-C8 cycloalkyl, fluoroalkyl, aryl, heteroaryl, or a straight chain, branched, or cyclic (C1-C8)-R 9 wherein up to two CH 2 units may be replaced with O, CO, S, SO, SO 2 or NR, or 2 R 8 taken together with the atoms to which they are attached form a ring; R 9 is H, CF 3, CO 2 R, OH, aryl, heteroaryl, C3-C8 cycloalkyl, heterocycloalkyl, N 2, NRCOR, CON 2, CN, halo, or SO 2 R; R is H, C1-C8 alkyl, aryl, heteroaryl, C3-C8 cycloalkyl, or heterocycloalkyl; A is an optionally substituted aryl, heteroaryl or heterocyclic; m is an integer from 0 to 4 inclusive; n is an integer from 0 to 3 inclusive; and o is an integer from 0 to 4 inclusive. R 1 is H, C1-C8 alkyl, C3-C8 cycloalkyl, halo, CN, NR 8 SO 2 R 8, SO 2 R 8, SR 8, SOR 8, NR 8 COR 8, NR 8 CO 2 R 8, CON(R 8) 2, SO 2 N(R 8) 2, CF 3, heterocycloalkyl, or a straight chain, branched, or cyclic (C1-C8)-R 9 wherein up to two CH 2 units may be replaced with O, CO, S, SO, SO 2 or NR 8, or two R 1 taken together form an oxo group, or a 3 to 7 membered fused cycloalkyl ring, or a 3 to 7 membered spirocyclic ring; R 2 is H, C1-C8 alkyl, halo, C1-C8 haloalkyl, CN, OH, SO 2 R 8, SR 8, SOR 8, COR 8, CO 2 R 8, CON(R 8) 2, SO 2 N(R 8) 2, CF 3, CHF 2, or a straight chain, branched, or cyclic (C1-C8)-R 9 wherein up to two CH 2 units may be replaced with O, CO, S, SO, SO 2, CF 2, or NR 8; R 3 is H, C1-C8 alkyl, C3-C8 cycloalkyl, CO 2 R 8, COR 8, COH, CON(R 8) 2, CF 3, CH 2 CF 3, CH 2 CHF 2, or a straight chain, branched, or cyclic (C1-C8)-R 9 wherein up to two CHF 2 units may be replaced with O, CO, S, SO, SO 2 or NR 8; R 4 is H, C1-C8 alkyl, halo, C3-C8 cycloalkyl, wherein up to two CH 2 units may be replaced by O, CO, S, SO, SO 2, or NR 8, or 2 R 4 taken together form a fused 3 to 7 membered cycloalkyl ring; R 8 is H, C1-C8 alkyl, CF 3, C3-C8 cycloalkyl, fluoroalkyl, aryl, heteroaryl, or a straight chain, branched, or cyclic (C1-C8)-R 9 wherein up to two CH 2 units may be replaced with O, CO, S, SO, SO 2 or NR, or 2 R 8 taken together with the atoms to which they are attached form a ring; R 9 is H, CF 3, CO 2 R, OH, aryl, heteroaryl, C3-C8 cycloalkyl, heterocycloalkyl, N 2, NRCOR, CON 2, CN, halo, or SO 2 R; R is H, C1-C8 alkyl, aryl, heteroaryl, C3-C8 cycloalkyl, or heterocycloalkyl; A is an optionally substituted aryl, heteroaryl or heterocyclic; m is an integer from 0 to 4 inclusive; n is an integer from 0 to 3 inclusive; and o is an integer from 0 to 4 inclusive.