add debug console logging