improvement of the deployment script