updated plugin to support multimaster clustering