enable jinja2.ext.do
fix a bug in session