adding utility functions, mainly for the Twig utility