improvements to deploy script