use builtin thread manager