add network detect.