whole bunch of ipath debugging and fixes