support for multiple relays and relays with different number of channels