added console.error override