add thread stuffs