added network error handler