better warning logging
warn by default