wait until master connection