         _.each deletesToWrite, (id) -> dirtyToWrite[id] = {deleted:true, id:id}
 
         dirtyData = JSON.stringify(dirtyToWrite)
+        hash = md5.digest_s(dirtyData)
+        @writehashes.push hash
         dirtyData = "#{dirtyData}\n"
+
         fs.appendFile @fileName, dirtyData, {encoding:'utf8'}, (err) =>
           unless err?
             console.log "Store about to call success callback"

    close : (cb) ->
      @tailProcess.kill()

    reader : () ->
      #inStream = fs.createReadStream(@fileName, {flags:'r', encoding:'utf8'})
      @tailProcess = cp.spawn 'tail', ['-f', '-n +0', @fileName]
      inStream     = @tailProcess.stdout
      dataReader   = carrier.carry inStream, (line) =>
        console.log "Reader LINE callback..."
        chunk   = JSON.parse line
        deleted = _.where chunk, {deleted:true}
        deleted = _.pluck deleted, 'id'
        _.each deleted, (id) =>
          delete chunk[id]
          delete @bucket[id]

#        _.extend contextBucket, chunk
        _.extend @bucket, chunk
        console.log "Reader LINE callback end!"

      dataReader.once 'end', () ->
        console.log "Reader END callback..."
#        cb() what?

    load : (cb) ->
      fs.closeSync(fs.openSync(@fileName, 'a'))
      @reader()
      cb()


    deleteById : (id) ->

      exports.bucket = new exports.Bucket(filename)
      exports.bucket.load () ->
        cb(exports.bucket)
    else
      cb(exports.bucket)

