* writing enums as strings.
* fixes.