Compounds of formula wherein R 1 is is substituted cycloalkylalkyl, substituted piperazinyl, substituted piperidinyl, substituted indanyloxyalkyl, substituted phenyl, substituted phenylalkyl, substituted phenoxyalkyl, substituted phenylcycloalkyl, substituted phenylalkenyl, substituted pyridinylalkyl, substituted pyridinylalkenyl, naphtyl, substituted naphthyl, substituted quinolinyl, substituted isoquinolinyl, or substituted 1H-indol-2-yl, wherein substituted cycloalkylalkyl, substituted piperazinyl, substituted piperidinyl, substituted indanyloxyalkyl, substituted phenyl, substituted phenylalkyl, substituted phenoxyalkyl, substituted phenylcycloalkyl, substituted phenylalkenyl, substituted pyridinylalkyl, substituted pyridinylalkenyl, substituted naphthyl, substituted quinolinyl, substituted isoquinolinyl and substituted 1H-indol-2-yl are substituted with R 8, R 9 and R 10; Y is -OC -, -NR 7 C -, -C -, -S 2 -, A is -N- or CR 5 -; W is -O-, -S-, -NR 6 -, -C -, -S 2 -, -C -NR 6 - or -CR 3 R 4 -; R 3 and R 4 are independently selected from H, halogen, alkyl and cycloalkyl; R 5, R 6 and R 7 are independently selected from H, alkyl and cycloalkyl; R 8, R 9 and R 10 are independently selected from H, alkyl, hydroxyalkyl, haloalkyl, hydroxyhaloalkyl, cycloalkyl, cycloalkylalkyl, cycloalkylalkoxy, cycloalkoxy, cycloalkoxyalkyl, cycloalkylalkoxyalkyl, alkoxy, alkoxyalkyl, haloalkoxy, alkoxyhaloalkyl, alkoxyalkoxy, alkoxyalkoxyalkyl, phenyl, substituted phenyl, pyridinyl, substituted pyridinyl, pyrrolyl, substituted pyrrolyl, pyrrolydinyl, substituted pyrrolydinyl, tetrahydrofuranyl, substituted tetrahydrofuranyl, halogen, hydroxy, cyano, alkylsulfanyl, haloalkylsulfanyl, cycloalkylsulfanyl, alkylsulfinyl, haloalkylsulfinyl, cycloalkylsulfinyl, alkylcarbonyl, haloalkylcarbonyl, cycloalkylcarbonyl, alkylsulfonyl, haloalkylsulfonyl, cycloalkylsulfonyl, substituted aminosulfonyl, substituted amino and substituted aminoalkyl, wherein substituted aminosulfonyl, substituted amino and substituted aminoalkyl are substituted on the nitrogen atom with one to two substituents independently selected from H, alkyl, cycloalkyl, cycloalkylalkyl, hydroxyalkyl, alkoxyalkyl, alkylcarbonyl and cycloalkylcarbonyl, and wherein substituted phenyl, substituted pyrrolyl, substituted pyrrolydinyl, substituted tetrahydrofuranyl, and substituted pyridinyl are substituted with one to three substituents independently selected from alkyl, halogen, haloalkyl, alkoxy and haloalkoxy; m, n, p and q are independently selected from 1 or 2; R 2 is selected from the ring systems B, C, D, E, G, H, M, O, P, R, S, T, U, V, X, Z, AA, AB, AC, AD, AE, AF, AG, AH and AI; R 11 is H, alkyl, haloalkyl or cycloalkyl; R 12 is alkyl, halogen, haloalkyl and alkoxy; and pharmaceutically acceptable salts. R 1 is is substituted cycloalkylalkyl, substituted piperazinyl, substituted piperidinyl, substituted indanyloxyalkyl, substituted phenyl, substituted phenylalkyl, substituted phenoxyalkyl, substituted phenylcycloalkyl, substituted phenylalkenyl, substituted pyridinylalkyl, substituted pyridinylalkenyl, naphtyl, substituted naphthyl, substituted quinolinyl, substituted isoquinolinyl, or substituted 1H-indol-2-yl, wherein substituted cycloalkylalkyl, substituted piperazinyl, substituted piperidinyl, substituted indanyloxyalkyl, substituted phenyl, substituted phenylalkyl, substituted phenoxyalkyl, substituted phenylcycloalkyl, substituted phenylalkenyl, substituted pyridinylalkyl, substituted pyridinylalkenyl, substituted naphthyl, substituted quinolinyl, substituted isoquinolinyl and substituted 1H-indol-2-yl are substituted with R 8, R 9 and R 10; Y is -OC -, -NR 7 C -, -C -, -S 2 -, A is -N- or CR 5 -; W is -O-, -S-, -NR 6 -, -C -, -S 2 -, -C -NR 6 - or -CR 3 R 4 -; R 3 and R 4 are independently selected from H, halogen, alkyl and cycloalkyl; R 5, R 6 and R 7 are independently selected from H, alkyl and cycloalkyl; R 8, R 9 and R 10 are independently selected from H, alkyl, hydroxyalkyl, haloalkyl, hydroxyhaloalkyl, cycloalkyl, cycloalkylalkyl, cycloalkylalkoxy, cycloalkoxy, cycloalkoxyalkyl, cycloalkylalkoxyalkyl, alkoxy, alkoxyalkyl, haloalkoxy, alkoxyhaloalkyl, alkoxyalkoxy, alkoxyalkoxyalkyl, phenyl, substituted phenyl, pyridinyl, substituted pyridinyl, pyrrolyl, substituted pyrrolyl, pyrrolydinyl, substituted pyrrolydinyl, tetrahydrofuranyl, substituted tetrahydrofuranyl, halogen, hydroxy, cyano, alkylsulfanyl, haloalkylsulfanyl, cycloalkylsulfanyl, alkylsulfinyl, haloalkylsulfinyl, cycloalkylsulfinyl, alkylcarbonyl, haloalkylcarbonyl, cycloalkylcarbonyl, alkylsulfonyl, haloalkylsulfonyl, cycloalkylsulfonyl, substituted aminosulfonyl, substituted amino and substituted aminoalkyl, wherein substituted aminosulfonyl, substituted amino and substituted aminoalkyl are substituted on the nitrogen atom with one to two substituents independently selected from H, alkyl, cycloalkyl, cycloalkylalkyl, hydroxyalkyl, alkoxyalkyl, alkylcarbonyl and cycloalkylcarbonyl, and wherein substituted phenyl, substituted pyrrolyl, substituted pyrrolydinyl, substituted tetrahydrofuranyl, and substituted pyridinyl are substituted with one to three substituents independently selected from alkyl, halogen, haloalkyl, alkoxy and haloalkoxy; m, n, p and q are independently selected from 1 or 2; R 2 is selected from the ring systems B, C, D, E, G, H, M, O, P, R, S, T, U, V, X, Z, AA, AB, AC, AD, AE, AF, AG, AH and AI; R 11 is H, alkyl, haloalkyl or cycloalkyl; R 12 is alkyl, halogen, haloalkyl and alkoxy; and pharmaceutically acceptable salts.