The present invention relates to compounds of formula (I) wherein X1 to X5, Z1 to Z3, Y0, RY1, RY2 and R have the meaning as cited in the description and the claims. Said compounds are useful as JAK inhibitors for the treatment or prophylaxis of immunological, inflammatory, autoimmune, allergic disorders, and immunologically-mediated diseases. The invention also relates to pharmaceutical compositions including said compounds, the preparation of such compounds as well as the use as medicaments.本発明は、式(I)の化合物に関する。(式中、X1からX5、Z1からZ3、Y0、RY1、RY2及びRは、明細書における記載及び請求項で挙げられた意味を有する)。前記化合物は、免疫学的、炎症性、自己免疫、アレルギー性の障害及び免疫学的に媒介される疾患の治療又は予防のためのJAK阻害剤として有用である。本発明は、前記化合物を含む医薬組成物、そのような化合物の調製並びに医薬としての使用にも関する。