check for internet availabilty and proper locations