add timeouts to http requests in clientapi