finish fixing invitations. tests pass.

We don't yet destroy the channel.
add a debugging tool