add channel_repository
use channel_repository in main client