piping errors to other places