twig adapter