added curl_close