clean up warning messages