automated redeploy script