refactoring program and channel params