updated and fixed mongo replicaset issues.