add the possibility to add timeouts to api requests