better warning messages