1.6: reworked references to channels. channels are now retained only if we are in that channel.