twickled some things around to be ok with pyinstruments