adapt a little for LISPTools in terms of kqueu and polling