casts generator for safetyEnums was added, generator for models was improved