fix windows line endings and DM mono-map problem