Disclosed are compounds of formula (I) which possess anthelminthic properties wherein the structural elements have the meaning as indicated in the description. Further disclosed are such compounds for the control, treatment and/or prevention of infections with helminths in animals and humans.