updated for latest twig version