why `debug` instead of `console.error`?