some changes in redeploy hook