fixing some issues with twig template post-processing and method naming