add utils for freemarker and emails