twig extensions and formatting