Changing debug impl
Refactoring ChannelFactory