improved handling for user-deleted files