updated template.bash