add some debug console logs