add code path for enums/inner enums