now uses jinja2 for templating