modified warning and error to warn and ERR accordingly. makes errors easier to spot on a rolling log