Compounds of formula R 1 is alkoxy, alkoxyalkyl, alkyl, alkylsulfonyl, aminosulfonylalkyl, substituted cycloalkyl, substituted cycloalkylalkyl, haloalkyl, hydroxyalkyl, dihydroxyalkyl, substituted heteroaryl, substituted heterocycloalkyl or substituted aryl, wherein substituted cycloalkyl, substituted cycloalkylalkyl, substituted heteroaryl, substituted heterocycloalkyl and substituted aryl are substituted with one to three substituents selected from H, amino, alkyl, haloalkyl, alkoxy, alkylcarbonyl, carboxy and halogen; R 2 is H or alkyl; R 3 is H; A 1 is -CH- or -N-; A 2 is -C -, -C CH 2 -, -CH 2 -, -NR 11 C -, -NR 11 C CH 2 -, -S 2 -; A 3 is -CR 8 - or -N-; R 4 is H, alkoxycarbonylalkyl, alkyl, carboxyalkyl, cycloalkyl or aminocarbonylalkyl substituted on the nitrogen atom by one H and one alkyl and R 5 is H, alkoxyalkyl, alkyl or aminocarbonylalkyl substituted on the nitrogen atom by two substitutents independently selected from H and alkyl, wherein one of R 4 and R 5 is H or alkyl; or R 4 and R 5 together with the nitrogen and carbon atoms to which they are attached form a heterocycloalkyl; R 6 is H; R 7, R 8 and R 9 are H; R 10 is substituted phenyl, substituted benzodioxolyl, substituted isoxazolyl, substituted oxadiazolyl or substituted pyridinyl, wherein substituted phenyl, substituted benzodioxolyl, substituted isoxazolyl, substituted oxadiazolyl or substituted pyridinyl are substituted with one to three substituents selected from H, alkyl, haloalkyl, alkoxy, halohalkoxy, halogen, nitro, cyano, alkylsulfonyl and pentafluoro- λ 6 -sulfanyl; R 11 is H or alkyl; R 12 and R 13 are both H or R 12 and R 13 together form -(CH 2) p -; R 14 is H; n, m and p are independently zero, 1 or 2; or pharmaceutically acceptable salts. R 1 is alkoxy, alkoxyalkyl, alkyl, alkylsulfonyl, aminosulfonylalkyl, substituted cycloalkyl, substituted cycloalkylalkyl, haloalkyl, hydroxyalkyl, dihydroxyalkyl, substituted heteroaryl, substituted heterocycloalkyl or substituted aryl, wherein substituted cycloalkyl, substituted cycloalkylalkyl, substituted heteroaryl, substituted heterocycloalkyl and substituted aryl are substituted with one to three substituents selected from H, amino, alkyl, haloalkyl, alkoxy, alkylcarbonyl, carboxy and halogen; R 2 is H or alkyl; R 3 is H; A 1 is -CH- or -N-; A 2 is -C -, -C CH 2 -, -CH 2 -, -NR 11 C -, -NR 11 C CH 2 -, -S 2 -; A 3 is -CR 8 - or -N-; R 4 is H, alkoxycarbonylalkyl, alkyl, carboxyalkyl, cycloalkyl or aminocarbonylalkyl substituted on the nitrogen atom by one H and one alkyl and R 5 is H, alkoxyalkyl, alkyl or aminocarbonylalkyl substituted on the nitrogen atom by two substitutents independently selected from H and alkyl, wherein one of R 4 and R 5 is H or alkyl; or R 4 and R 5 together with the nitrogen and carbon atoms to which they are attached form a heterocycloalkyl; R 6 is H; R 7, R 8 and R 9 are H; R 10 is substituted phenyl, substituted benzodioxolyl, substituted isoxazolyl, substituted oxadiazolyl or substituted pyridinyl, wherein substituted phenyl, substituted benzodioxolyl, substituted isoxazolyl, substituted oxadiazolyl or substituted pyridinyl are substituted with one to three substituents selected from H, alkyl, haloalkyl, alkoxy, halohalkoxy, halogen, nitro, cyano, alkylsulfonyl and pentafluoro- λ 6 -sulfanyl; R 11 is H or alkyl; R 12 and R 13 are both H or R 12 and R 13 together form -(CH 2) p -; R 14 is H; n, m and p are independently zero, 1 or 2; or pharmaceutically acceptable salts.