add network status check