added mongodb client and replica set support