add support for other line endings