fix syntax & line endings