dos->unix, oops
remove useless slicing
make everything private