use select instead of muti-process