add tool to demux replica trajectory