updated curlloop