fixed bug to allow arbitrary channels