#410: merge threads