fix emailtemplate methods