add pipe example
fix deps
handle read/write when not extended