shorten warning messages