add multi input support on each output