basic spell functionality added