modififed deploy.rb