add readKV script