add threadmanager