added curl_seek function