A compound of formula, or a pharmaceutically acceptable salt thereof: wherein: A is -CH(R 1)- or -N(R 2)-; R 1 is selected from the group consisting of hydrogen, -O-C 1-10 alkyl, and C 1-10 alkyl optionally substituted with one to four halogens; and R 2 is selected from the group consisting of hygrogen, -S 2 -C 1-4 alkyl, and C 1-10 alkyl optionally substituted with one to four halogens; B is -CH 2 - or -O-; R is selected from the group consisting of: hydrogen, halogen, -C 1-10 alkyl, -O-C 1-10 alkyl, -NR x R y, wherein each of R x and R y is independently selected from the group consisting of (a) hydrogen and (b) C 1-6 alkyl optionally substituted with one to four substituents independently selected from halogen and heterocyclyl; wherein the heterocyclyl is optionally substituted with one to four substituents independently selected from methyl, ethyl, propyl, butyl, -CH 2 -Cl, -CH 2 -F, - CH 2 CH 2 -Cl, -CH 2 CH 2 -F, and -CH 2 CF 3; and heterocyclyl, optionally substituted with one to four substituents independently selected from halogen, hydroxyl, -C 1-10 alkyl, and -O-C 1-10 alkyl; R e is selected from the group consisting of: hydrogen, halogen, and C 1-6 alkyl; and each of R f, R g, R h, R m, R n and R p is independently selected from the group consisting of: hydrogen, halogen, C 1-6 alkyl, and -S 2 -C 1-4 alkyl; with the proviso that when R e is hydrogen, at least one of R f, R g, R h, R m, R n and R p is not hydrogen. A is -CH(R 1)- or -N(R 2)-; R 1 is selected from the group consisting of hydrogen, -O-C 1-10 alkyl, and C 1-10 alkyl optionally substituted with one to four halogens; and R 2 is selected from the group consisting of hygrogen, -S 2 -C 1-4 alkyl, and C 1-10 alkyl optionally substituted with one to four halogens; B is -CH 2 - or -O-; R is selected from the group consisting of: hydrogen, halogen, -C 1-10 alkyl, -O-C 1-10 alkyl, -NR x R y, wherein each of R x and R y is independently selected from the group consisting of (a) hydrogen and (b) C 1-6 alkyl optionally substituted with one to four substituents independently selected from halogen and heterocyclyl; wherein the heterocyclyl is optionally substituted with one to four substituents independently selected from methyl, ethyl, propyl, butyl, -CH 2 -Cl, -CH 2 -F, - CH 2 CH 2 -Cl, -CH 2 CH 2 -F, and -CH 2 CF 3; and heterocyclyl, optionally substituted with one to four substituents independently selected from halogen, hydroxyl, -C 1-10 alkyl, and -O-C 1-10 alkyl; hydrogen, halogen, -C 1-10 alkyl, -O-C 1-10 alkyl, -NR x R y, wherein each of R x and R y is independently selected from the group consisting of (a) hydrogen and (b) C 1-6 alkyl optionally substituted with one to four substituents independently selected from halogen and heterocyclyl; wherein the heterocyclyl is optionally substituted with one to four substituents independently selected from methyl, ethyl, propyl, butyl, -CH 2 -Cl, -CH 2 -F, - CH 2 CH 2 -Cl, -CH 2 CH 2 -F, and -CH 2 CF 3; and heterocyclyl, optionally substituted with one to four substituents independently selected from halogen, hydroxyl, -C 1-10 alkyl, and -O-C 1-10 alkyl; R e is selected from the group consisting of: hydrogen, halogen, and C 1-6 alkyl; and hydrogen, halogen, and C 1-6 alkyl; and each of R f, R g, R h, R m, R n and R p is independently selected from the group consisting of: hydrogen, halogen, C 1-6 alkyl, and -S 2 -C 1-4 alkyl; with the proviso that when R e is hydrogen, at least one of R f, R g, R h, R m, R n and R p is not hydrogen. hydrogen, halogen, C 1-6 alkyl, and -S 2 -C 1-4 alkyl;