rm twig; implement email function