use Mongo::MongoReplicaSetClient.new for replica sets