modified reset to handle situations where there is no internet connection