finish renaming files; add redundancy check