reconstruct the code struction
add channel_parse() in config.c and add getchannel() in main.c