add some additional debugging to refunds