fix line endings
fix loading the nif