A compound of formula wherein X is O or S; Y is -C - or -S 2 -; A is a single bond or double bond, with the proviso that when X is S then A is a double bond; R 1 is hydrogen, C 1-7 alkyl, C 1-7 haloalkyl, C 2-7 alkenyl, C 2-7 alkynyl, cycloalkyl, heterocycloalkyl, aryl, aryl anellated to heterocycloalkyl, heteroaryl, or -N(R 6) 2; wherein C 1-7 alkyl, C 1-7 haloalkyl, C 2-7 alkenyl, and C 2-7 alkynyl are optionally substituted by one to three independent R 4; and wherein cycloalkyl, heterocycloalkyl, aryl, aryl anellated to heterocycloalkyl, and heteroaryl are optionally substituted by one to three independent R 5; R 2, R 3 are independently hydrogen, halogen, C 1-7 alkyl, C 1-7 haloalkyl, hydroxy, C 1-7 alkoxy or C 1-7 haloalkoxy; R 4 is cyano, cycloalkyl, heterocycloalkyl, aryl, aryl anellated to heterocycloalkyl, heteroaryl, -C N(R 6) 2, -N(R 6) 2, -NH -C 1-7 alkyl, hydroxy, C 1-7 alkoxy, C 1-7 haloalkoxy, oxo, or -S 2 R 7, wherein cycloalkyl, heterocycloalkyl, aryl, aryl anellated to heterocycloalkyl, and heteroaryl are optionally substituted by one to three independent R 5; R 5 is halogen, cyano, C 1-7 alkyl, C 1-7 haloalkyl, cycloalkyl, heterocycloalkyl, aryl, heteroaryl, -C N(R 6) 2, -N(R 6) 2, -NH -C 1-7 alkyl, hydroxy, C 1-7 alkoxy, C 1-7 haloalkoxy, oxo, or -S 2 R 7, wherein cycloalkyl, heterocycloalkyl, aryl, and heteroaryl are optionally substituted by one to three substituents selected independently from the group of halo, cyano, C 1-7 alkyl, C 1-7 haloalkyl, hydroxy, alkoxy, and oxo; R 6 is hydrogen, or C 1-7 alkyl; R 7 is hydrogen, C 1-7 alkyl, or aryl, wherein aryl is optionally substituted by one to three substituents selected independently from the group of halogen, cyano, C 1-7 alkyl, C 1-7 haloalkyl, hydroxy, C 1-7 alkoxy, C 1-7 haloalkoxy; and pharmaceutically acceptable salts and esters thereof; wherein the term "cycloalkyl" denotes a monovalent saturated monocyclic or bicyclic hydrocarbon radical of 3 to 8 ring carbon atoms; wherein the term "heterocycloalkyl" denotes a monovalent saturated or partly unsaturated mono- or bicyclic ring system of 4 to 9 ring atoms, comprising 1, 2, or 3 ring heteroatoms selected from N, O and S, the remaining ring atoms being carbon; wherein the term "aryl" denotes a monovalent aromatic carbocyclic mono- or bicyclic ring system comprising 6 to 10 carbon ring atoms; and wherein the term "heteroaryl" denotes a monovalent aromatic heterocyclic mono- or bicyclic ring system of 5 to 12 ring atoms, comprising 1, 2, 3 or 4 heteroatoms selected from N, O and S, the remaining ring atoms being carbon. X is O or S; Y is -C - or -S 2 -; A is a single bond or double bond, with the proviso that when X is S then A is a double bond; R 1 is hydrogen, C 1-7 alkyl, C 1-7 haloalkyl, C 2-7 alkenyl, C 2-7 alkynyl, cycloalkyl, heterocycloalkyl, aryl, aryl anellated to heterocycloalkyl, heteroaryl, or -N(R 6) 2; wherein C 1-7 alkyl, C 1-7 haloalkyl, C 2-7 alkenyl, and C 2-7 alkynyl are optionally substituted by one to three independent R 4; and wherein cycloalkyl, heterocycloalkyl, aryl, aryl anellated to heterocycloalkyl, and heteroaryl are optionally substituted by one to three independent R 5; R 2, R 3 are independently hydrogen, halogen, C 1-7 alkyl, C 1-7 haloalkyl, hydroxy, C 1-7 alkoxy or C 1-7 haloalkoxy; R 4 is cyano, cycloalkyl, heterocycloalkyl, aryl, aryl anellated to heterocycloalkyl, heteroaryl, -C N(R 6) 2, -N(R 6) 2, -NH -C 1-7 alkyl, hydroxy, C 1-7 alkoxy, C 1-7 haloalkoxy, oxo, or -S 2 R 7, wherein cycloalkyl, heterocycloalkyl, aryl, aryl anellated to heterocycloalkyl, and heteroaryl are optionally substituted by one to three independent R 5; R 5 is halogen, cyano, C 1-7 alkyl, C 1-7 haloalkyl, cycloalkyl, heterocycloalkyl, aryl, heteroaryl, -C N(R 6) 2, -N(R 6) 2, -NH -C 1-7 alkyl, hydroxy, C 1-7 alkoxy, C 1-7 haloalkoxy, oxo, or -S 2 R 7, wherein cycloalkyl, heterocycloalkyl, aryl, and heteroaryl are optionally substituted by one to three substituents selected independently from the group of halo, cyano, C 1-7 alkyl, C 1-7 haloalkyl, hydroxy, alkoxy, and oxo; R 6 is hydrogen, or C 1-7 alkyl; R 7 is hydrogen, C 1-7 alkyl, or aryl, wherein aryl is optionally substituted by one to three substituents selected independently from the group of halogen, cyano, C 1-7 alkyl, C 1-7 haloalkyl, hydroxy, C 1-7 alkoxy, C 1-7 haloalkoxy;