events in writable stream mode