added some debugging.