fix crapton line endings; basic version working with stuff in separate files