bugfix: break in switch can't break-out outer for statement
using kevent_add