curl for file download instead native lib