ignore mac/windows differences in \r\n
added scope