made the plugin emailTemplate friendly