redir input, output and error on demmand