tweaking the generator - add an autogenerated enum