add consume method and use unix line endings