update enums and types