- improve error messages for missing attributes, and enum parsing