#$%^&*AU2016203378A120160623.pdf#####ABSTRACT Compounds and pharmaceutically acceptable compositions thereof that are useful as inhibitors of protein kinases. These compounds are represented by formula I: HNJD N RY N Q,,RI or a pharmaceutically acceptable salt thereof, wherein R, RX, R , Q, and Ht are as defined herein. These compounds and pharmaceutically acceptable compositions thereof are useful for inhibiting kinases in vitro, in vivo, and ex vivo. Such uses include treating or preventing a variety of diseases, disorders or conditions, including, but not limited to, autoimmune diseases, inflammatory diseases, bone diseases, metabolic diseases, neurological and neurodegenerative diseases, cancer, cardiovascular diseases, allergies and asthma, Alzheimers disease, and hormone-related diseases. Other uses include the study of kinases in biological and pathological phenomena the study of intracellular signal transduction pathways mediated by such kinases and the comparative evaluation of new kinase inhibitors.