add cursorId and keyId