fixed mem leak in dispatcher
event-driven implementation non-blocking IO (kqueue backend)