added libcurl support