added conditional debug for buildCoupling