update line terminator handling