cursor wrap.
update test.
export FLAGS.
for perforance reason, allow int/string key, string value only.