check for internet connectivity