added twig extension and helper
added security stuff