The present invention is directed to modulators, such as inhibitors, of JNK isoform 2 (JNK2) or isoform 3 (JNK3) comprising compounds of formula (I) or formula (II) as described herein. Compounds of the invention can be used for treatment of a medical disorder in a patient wherein modulation of JNK3 is medically indicated, such as when the disorder is Parkinson disease (PD) Alzheimers disease (AD), Huntingtons disease (HD), amyotrophic lateral sclerosis (ALS), multiple sclerosis (MS), myocardial infarction (MI), glaucoma, obesity, diabetes, cancer, rheumatoid arthritis, fibrotic disease, pulmonary fibrosis, kidney disease, liver inflammation, Crohns disease, hearing loss, Prader Willi syndrome, or a condition where modification of feeding behavior is medically indicated.