fixed Problems with the QC script. Refactored so methods are in the b2b:tools.pm