 clone   = require 'clone'
 uuid    = require 'node-uuid'
 _       = require 'underscore'
+md5     = require 'md5'
+
 
 exports.Bucket = (fileName) -> {
     fileName    : fileName

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


        _.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"
