link master to replicas