added internet check