check for internet connectivity on start up