fix line endings + base script