add thread lib and deprecate multi curl. use multi thread later