update with latest kvs, ensure kai dir at startup