broken
fixed pipewrite, works now