added some debug logic. (will remove shortly)
fix for mike's commit.