removed spells directory, refactoring