adding a timeout to the HTTP request