fixed script to print demux summary