add twig lengths to paths