readd namevar to template_app