changed connection.rb