keep error infile as well