n-way multi master and mirror mode