helper script for cw-mux and first topology diagram