add posibility of using replica set