added jinja2 support