added check network status