working on twig implementation