pipe and event support, v0.2.2