updated log message parsing