switch to jinja2