start adding support for de/serializing enum types