switched to jinja2 templates