added twig extension (filter and function)