add multi thread version auto