added some debug console output