add thread id