added timeout check function; I believe client.Do is getting stuck infinitely