new twig implementation