add redirect err to output stream.