   verifyDeprecatedToken: (token, callback=_.noop) =>
     @fetch (error, attributes) =>
       return callback error if error?
-      
+
       hashedTokens = _.pluck(attributes.tokens, 'hash') ? []
       hashedTokens.push attributes.token if attributes.token?
 

    ], (error) =>
      return callback error if error?
      debug 'save', @attributes
      @devices.update {uuid: @uuid}, {$set: @attributes}, (error, data) =>
        @clearCache @uuid
        @fetch?.cache = null
        callback error

  set: (attributes)=>
    @attributes ?= {}

      @clearCache @uuid
      @fetch?.cache = null
      return callback @sanitizeError(error) if error?
      @_hashDevice (error) =>
        return callback @sanitizeError(error) if error?
        callback()

  _hashDevice: (callback=->) =>
    debug '_hashDevice', @uuid
    @devices.findOne uuid: @uuid, (error, data) =>
      return callback error if error?
      delete data.meshblu.hash if data?.meshblu?.hash
      params = $set :
        'meshblu.hash': @_hashToken JSON.stringify(data)
      debug 'updating hash', @uuid, params
      @devices.update uuid: @uuid, params, callback

  addGeo: (callback=->) =>
    return _.defer callback unless @attributes.ipAddress?
