added jinja templating