add thread id to outpout