added channel api and the refresh method