working on the jinja stuff