use schema enums, closes #30