switching to jinja2 templates