removed most of the obsolete channel code