deploy template script