use multithread in buildin-modle