fixed piping and output to file bug
can now handle #> redirection