wip - check for network connection