changing to JSON version of spells