wrote some twig extensions