revised the deploy.sh script