added error reporting for find_dups