working version of twig formatter