pairwise banding with more debugging output