cleaned up the deploy script
more improvements to the deploy script