implement the twig templates