move whitelisted files to the end of the file