migrating jinja stuff