changed line endings to \r\n
changed scanners to lazy line-seq