add thread for install packages