modify agent event parser.