update history. support {{@root.foo.bar}}