modified redeploy script