add thread master - worker