working on a KV using leveldb