fix add output thread id