add thread structures