Properly determin channels per node and numchannels for export