added jinja2 templating