first draft of libcurl support