ref and spell