gen files include fix + to_json codegen enum fix