adding zsock_waiting support