updating configuration treebuilder and add Twig Functions