fix a bunch of random bugs with debugging.  also add an id feature
Ugg, still ID isn't right.