add threadLib