fixed line endings and options