use enum instead of hardcoded spellids