minor mods, but not fully functional, check that the onset/offset transients are not in the traces