added a bunch of debugging info.