first commit test whether connected to internet