refs #14. optimize the process of channel manage. Fix some bugs.