change the way it checks for internet connectivity