updated config and twig extension