updating channel meta structure and add channel api. WIP