use console.warn directly