fix enums to serialize and deserialize from string and integers
fix enums to serialize and deserialize from string and integers