handle multiple files with the same name