dealing with line endings