[WIP]
[WIP] windows
[WIP] windows
[WIP] improved read/write
[WIP] windows
[WIP] swap pipe in/out