add gen-class directive