more variables are now passed to the templates
problem with paths in templates