fixes stitching to handle new format and merge annotations and dump graph