well, now it is crashing, but i want to go to bed. i'm trying to get a dummy example of a differential calculation actually going.
fixed my double free :)