fix import error, used related select
fix bug infinet loop on local process