got the templating work with jinja2