adjust files, deal with duplication