add enum class to unify parsing/stringification