modify for mongo replicaset