partially implemented handling of spells