fix file stream
various logger and stream.read
line ending