indexed by channel id instead of pos
ready for JSON output