do jinja expansion in template properly, pass var along