1312The present invention relates to compounds of formula (I) wherein R to R X X have the meaning as cited in the description and the claims. Said compounds are useful as TYK2 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 as well as their use as medicaments.