added some debug output.