add support for MongoDB ReplicaSets