more warning/error replacement