moving ThreadManager:join() to public