add network status checking