using kqueue on newer mac versions