improve NetworkHelper