removing unused thread cruft