refine internet connection status checker