generalise the output format of xchan_fetch so it matches the input format