Revert "thread"

This reverts commit cf55c9967b61bb957db6bfe58ac5ed8ab2732593.