almost done with piping, just need output redirect