basic support for replica-sets