remove isWarnEnabled check