working on downloader with libcurl