update threading branch