added jinja2 templating functionalities