switch to jinja for templating