optimize demod, allow for channel count changes