refactor detecting on sets of channels