add network detect