additional thread id check