wait for network