adding debug console logs