update basic template deploy function