simplified enum handling