add debug for twig