mongo.rb modified