added dubug to channel_api