allow zero arguments in generate_channel_switch