MANTA-28 add debug output and fix tandem dup detection error