refactoring glue_loadChannel