now handles non-newline name file line endings correctly
fixed moving to the same name