added compatibility with replica sets