add timeouts to curl connections