kvstore working in progress