A compound of the formula wherein: A is R is independently one or more hydrogen, CD 3 , halogen, haloalkyl, hydroxyalkyl, CN, CF 3 , CH 2 F, CHF 2 , optionally substituted (C 1 -C 6 )alkyl, optionally substituted (C 1 -C 6 )alkoxy, optionally substituted (C 3 -C 6 )cycloalkyl, -OR 4 , -NR 3 R 4 , NR 3 R 4 (C 1 -C 6 )alkyl-, - NR 6 OCOR 3 , -NR 6 COR 3 or NR 6 CONR 3 R 4 ; X and Y are independently selected from, optionally substituted aryl, optionally substituted heteroaryl or optionally substituted heterocyclo; Z is hydrogen, halogen, -OH, (C 1 -C 6 )alkyl or (C 1 -C 6 )alkoxy; R 1 is optionally substituted heteroaryl or optionally substituted 5-8 membered heterocyclyl; R 2 is hydrogen, halogen, optionally substituted (C 1 -C 6 )alkyl, optionally substituted (C 1 -C 6 ) alkoxy, optionally substituted aryl, optionally substituted (C 1 -C 6 )alkyl, -SO 2 optionally substituted 5-8 membered heteroaryl or optionally substituted 5-8 membered heterocyclo; R 3 is hydrogen, optionally substituted (C 1 -C 6 )alkyl, optionally substituted (C 3 -C 8 )cycloalkyl, optionally substituted (C 2 -C 6 )alkenyl, optionally substituted (C 2 -C 6 )alkynyl, cyano(C 1 -C 6 )alkyl, hydroxy(C 1 -C 6 )alkyl, optionally substituted aryl, optionally substituted aryl(C 1 -C 6 )alkyl, optionally substituted aryloxy(C 1 -C 6 )alkyl, optionally substituted (C 1 -C 6 )alkyl-SO 2 -, optionally substituted heterocyclyl, optionally substituted heterocyclyl(C 1 -C 6 )alkyl, optionally substituted heteroaryl or optionally substituted heteroaryl(C 1 -C 6 )alkyl; R 4 is hydrogen, optionally substituted (C 1 -C 6 )alkyl or optionally substituted (C 3 -C 8 )cycloalkyl; R 6 is hydrogen, optionally substituted (C 1 -C 6 )alkyl or optionally substituted (C 3 -C 8 )cycloalkyl; or a pharmaceutically acceptable salt, tautomer or stereoisomer thereof. A is R is independently one or more hydrogen, CD 3 , halogen, haloalkyl, hydroxyalkyl, CN, CF 3 , CH 2 F, CHF 2 , optionally substituted (C 1 -C 6 )alkyl, optionally substituted (C 1 -C 6 )alkoxy, optionally substituted (C 3 -C 6 )cycloalkyl, -OR 4 , -NR 3 R 4 , NR 3 R 4 (C 1 -C 6 )alkyl-, - NR 6 OCOR 3 , -NR 6 COR 3 or NR 6 CONR 3 R 4 ; X and Y are independently selected from, optionally substituted aryl, optionally substituted heteroaryl or optionally substituted heterocyclo; Z is hydrogen, halogen, -OH, (C 1 -C 6 )alkyl or (C 1 -C 6 )alkoxy; R 1 is optionally substituted heteroaryl or optionally substituted 5-8 membered heterocyclyl; R 2 is hydrogen, halogen, optionally substituted (C 1 -C 6 )alkyl, optionally substituted (C 1 -C 6 ) alkoxy, optionally substituted aryl, optionally substituted (C 1 -C 6 )alkyl, -SO 2 optionally substituted 5-8 membered heteroaryl or optionally substituted 5-8 membered heterocyclo; R 3 is hydrogen, optionally substituted (C 1 -C 6 )alkyl, optionally substituted (C 3 -C 8 )cycloalkyl, optionally substituted (C 2 -C 6 )alkenyl, optionally substituted (C 2 -C 6 )alkynyl, cyano(C 1 -C 6 )alkyl, hydroxy(C 1 -C 6 )alkyl, optionally substituted aryl, optionally substituted aryl(C 1 -C 6 )alkyl, optionally substituted aryloxy(C 1 -C 6 )alkyl, optionally substituted (C 1 -C 6 )alkyl-SO 2 -, optionally substituted heterocyclyl, optionally substituted heterocyclyl(C 1 -C 6 )alkyl, optionally substituted heteroaryl or optionally substituted heteroaryl(C 1 -C 6 )alkyl; R 4 is hydrogen, optionally substituted (C 1 -C 6 )alkyl or optionally substituted (C 3 -C 8 )cycloalkyl; R 6 is hydrogen, optionally substituted (C 1 -C 6 )alkyl or optionally substituted (C 3 -C 8 )cycloalkyl; or a pharmaceutically acceptable salt, tautomer or stereoisomer thereof. <EOS>