hacky polyfill for Enum class