added internet checks