now store the kvpairs into files...