refactor: make better handling of pipe events
0.1.3