update kvs