add thread relevant class