change to use new thread library
7 files changed