init from KV