rudimentary support for replica sets.