new bugfix , now defining enums based on gen format