wait for nodes to join