reviewed deploy.rb