add keyvalue concept and mods for sequencefile storage