added gettemplates()