now works on files that have been moved