The invention provides a novel class of compounds of formula I:(see formula I)wherein R1, R2, R3, R4, m and n are as defined in the claims, pharmaceuticalcompositions comprising such compounds and methods of using such compounds totreat or prevent diseases or disorders associated with abnormal or deregulatedkinase activity, particularly diseases or disorders that involve abnormalactivation ofthe Abl, BCR-Abl, PDGF-R, trkB, c-SRC, BMX, FGFR3, b-RAF, SGK, Tie2, Lck,JNK2.alpha.2, MKK4, c-RAF, MKK6, SAPK2.alpha. and SAPK2.beta. kinases.