changed internet connection check to ping google