add timeouts on curl