twig extension clean up