minor improvements to the thread wrapping API