use addWarning() where appropriate