A compound that has the following structure, or a pharmaceutically acceptable salt, solvate, diastereomeric mixture, or individual enantiomers thereof: wherein: each R a is independently hydrogen, F, Cl, Br, -CH 3, -CH 2 F, -CHF 2, -CF 3, -CN, -OH, -OCH 3, -OCF 3, -CH 2 OH or -CH 2 CH 2 OH; each R b is independently hydrogen, F, Cl, Br, -CH 3, -CH 2 F, -CHF 2, -CF 3, -CN, -OH, -OCH 3, or -OCF 3; m is 1 or 2; n is 0, 1 or 2; R B is each R c is independently hydrogen, F, Cl, Br, -CH 3, -CH 2 CH 3, -CH 2 CH 2 CH 3, -CH(CH 3) 2, - CH 2 CH 2 CH 2 CH 3, -CH 2 CH(CH 3) 2, -CH(CH 3)(CH 2 CH 3), -C(CH 3) 3, -CH 2 OH, -CH 2 CN, - CH 2 F, -CHF 2, -CF 3, -CN, -OH, -OCH 3, -OCH 2 CH 3, -OCF 3, -CO 2 H, -CO 2 CH 3, - CO 2 CH 2 CH 3, -CH 2 CO 2 H, -CH 2 CO 2 CH 3, -CH 2 CO 2 CH 2 CH 3, -C(=O)NH 2, -C(=O)NHCH 3, -C(=O)NHOCH 3, -C(=O)N(CH 3) 2, -SO 2 N(CH 3) 2, -C(=NOCH 3)H, -CH 2 C(=O)NH 2, - CH 2 C(=O)NHCH 3, -CH 2 C(=O)N(CH 3) 2, -NH 2, -NHCH3, -N(CH 3) 2, -NHCO 2 CH 3, - NHSO 2 CH 3, -CH 2 NH 2, -CH 2 NHCH 3, -CH 2 N(CH 3) 2, -CH(CF 3)NH 2, azetidinyl, or pyrrolidinyl; each R d is independently hydrogen, F, Cl, Br, -CH 3, -CH 2 CH 3, -CH 2 CH 2 CH 3, -CH(CH 3) 2, - CH 2 CH 2 CH 2 CH 3, -CH 2 CH(CH 3) 2, -CH(CH 3)(CH 2 CH 3), -C(CH 3) 3, -CH 2 OH, -CH 2 CN, - CH 2 F, -CHF 2, -CF 3, pyrrolyl, imidazolyl, pyrazolyl, triazolyl, tetrazolyl, -CN, -OH, - OCH 3, -OCH 2 CH 3, -OCF 3, -OCH 2 OCH 3, -OCH 2 OCH 2 CH 3, -OCH 2 CH 2 OH, - C(=O)NHOCH 3, -C(=NOH)H, -C(=NOCH 3)H, -CH 2 C(=O)NH 2, -NH 2, -NHCO 2 CH 3, - NHSO 2 CH 3, -NH(C=O)NHCH 3, -NH(C=O)NHOCH 3, or -CH(CF 3)NH 2; or if one R c and one R d are on adjacent atoms of R B then the adjacent R c and R d groups are taken together with the intervening atoms to which they are attached to form a 5- or 6-membered monocyclic heterocycle; p is 1 or 2; q is 0, 1 or 2; X is CR f or N; Y is CR f or N; Z is CR f or N; R e is hydrogen, F, Cl, Br, -CH 3, -CH 2 CH 3, -CH 2 F, -CHF 2, -CF 3, -CN, -OH, -OCH 3, - OCH 2 CH 3, or -OCF 3; each R f is independently hydrogen, F, Cl, Br, -CH 3, -CH 2 CH 3, -CH 2 F, -CHF 2, -CF 3, -CN, - OH, -OCH 3, -OCH 2 CH 3, or -OCF 3; R 1 is hydrogen; R 2 is hydrogen, methyl, ethyl, 2-fluoroethyl, 2-hydroxyethyl, 2-methoxyethyl, n-propyl, i-propyl, cyclopropyl, 3-fluoropropyl, 3-methoxypropyl, n-butyl, i-butyl, sec-butyl, cyclobutyl, tert-butyl, or oxetanyl; R 5 is hydrogen, F, Cl, Br, -OH, -OCH 3, -NH 2, -NHCH 3, -N(CH 3) 2, -OCH 2 CH 3, -OCF 3, -CH 3, -CH 2 CH 3, -CH 2 F, -CHF 2, -CF 3, -CN, -C(=O)OCH 3, -C(=O)NH 2, -C(=O)NHCH 3, or - C(=O)N(CH 3) 2; or R 2 and R 5 are taken together with the intervening atoms to which they are attached to form an azetidinyl, pyrrolidinyl, piperidinyl, morpholinyl, thiomorpholinyl, piperazinyl, or azepanyl. each R a is independently hydrogen, F, Cl, Br, -CH 3, -CH 2 F, -CHF 2, -CF 3, -CN, -OH, -OCH 3, -OCF 3, -CH 2 OH or -CH 2 CH 2 OH; each R b is independently hydrogen, F, Cl, Br, -CH 3, -CH 2 F, -CHF 2, -CF 3, -CN, -OH, -OCH 3, or -OCF 3; m is 1 or 2; n is 0, 1 or 2; R B is each R c is independently hydrogen, F, Cl, Br, -CH 3, -CH 2 CH 3, -CH 2 CH 2 CH 3, -CH(CH 3) 2, - CH 2 CH 2 CH 2 CH 3, -CH 2 CH(CH 3) 2, -CH(CH 3)(CH 2 CH 3), -C(CH 3) 3, -CH 2 OH, -CH 2 CN, - CH 2 F, -CHF 2, -CF 3, -CN, -OH, -OCH 3, -OCH 2 CH 3, -OCF 3, -CO 2 H, -CO 2 CH 3, - CO 2 CH 2 CH 3, -CH 2 CO 2 H, -CH 2 CO 2 CH 3, -CH 2 CO 2 CH 2 CH 3, -C(=O)NH 2, -C(=O)NHCH 3, -C(=O)NHOCH 3, -C(=O)N(CH 3) 2, -SO 2 N(CH 3) 2, -C(=NOCH 3)H, -CH 2 C(=O)NH 2, - CH 2 C(=O)NHCH 3, -CH 2 C(=O)N(CH 3) 2, -NH 2, -NHCH3, -N(CH 3) 2, -NHCO 2 CH 3, - NHSO 2 CH 3, -CH 2 NH 2, -CH 2 NHCH 3, -CH 2 N(CH 3) 2, -CH(CF 3)NH 2, azetidinyl, or pyrrolidinyl; each R d is independently hydrogen, F, Cl, Br, -CH 3, -CH 2 CH 3, -CH 2 CH 2 CH 3, -CH(CH 3) 2, - CH 2 CH 2 CH 2 CH 3, -CH 2 CH(CH 3) 2, -CH(CH 3)(CH 2 CH 3), -C(CH 3) 3, -CH 2 OH, -CH 2 CN, - CH 2 F, -CHF 2, -CF 3, pyrrolyl, imidazolyl, pyrazolyl, triazolyl, tetrazolyl, -CN, -OH, - OCH 3, -OCH 2 CH 3, -OCF 3, -OCH 2 OCH 3, -OCH 2 OCH 2 CH 3, -OCH 2 CH 2 OH, - C(=O)NHOCH 3, -C(=NOH)H, -C(=NOCH 3)H, -CH 2 C(=O)NH 2, -NH 2, -NHCO 2 CH 3, - NHSO 2 CH 3, -NH(C=O)NHCH 3, -NH(C=O)NHOCH 3, or -CH(CF 3)NH 2; or if one R c and one R d are on adjacent atoms of R B then the adjacent R c and R d groups are taken together with the intervening atoms to which they are attached to form a 5- or 6-membered monocyclic heterocycle; p is 1 or 2; q is 0, 1 or 2; X is CR f or N; Y is CR f or N; Z is CR f or N; R e is hydrogen, F, Cl, Br, -CH 3, -CH 2 CH 3, -CH 2 F, -CHF 2, -CF 3, -CN, -OH, -OCH 3, - OCH 2 CH 3, or -OCF 3; each R f is independently hydrogen, F, Cl, Br, -CH 3, -CH 2 CH 3, -CH 2 F, -CHF 2, -CF 3, -CN, - OH, -OCH 3, -OCH 2 CH 3, or -OCF 3; R 1 is hydrogen; R 2 is hydrogen, methyl, ethyl, 2-fluoroethyl, 2-hydroxyethyl, 2-methoxyethyl, n-propyl, i-propyl, cyclopropyl, 3-fluoropropyl, 3-methoxypropyl, n-butyl, i-butyl, sec-butyl, cyclobutyl, tert-butyl, or oxetanyl; R 5 is hydrogen, F, Cl, Br, -OH, -OCH 3, -NH 2, -NHCH 3, -N(CH 3) 2, -OCH 2 CH 3, -OCF 3, -CH 3, -CH 2 CH 3, -CH 2 F, -CHF 2, -CF 3, -CN, -C(=O)OCH 3, -C(=O)NH 2, -C(=O)NHCH 3, or - C(=O)N(CH 3) 2; or R 2 and R 5 are taken together with the intervening atoms to which they are attached to form an azetidinyl, pyrrolidinyl, piperidinyl, morpholinyl, thiomorpholinyl, piperazinyl, or azepanyl.