support channel registering and a bug fix