adding timeout to internet check