add thread lib