fixes to deploy.rb