nit: any reason not to use console.warn or console.error here?