moved d3 spells to directive