*fixed: thread id as an arg