fix layout issues, line endings