redir input, output, error on demand