set up kv_server depends on kv