made template_dir as a parameter to agent's push_templates defined type