         else if action is '/retry'
           if request.method == 'POST'
             db.tasksCollection.update({_id : taskId}, {$unset : {fault : 1}, $inc : {retries : 1}, '$set' : {timestamp : new Date()}}, (err, count) ->
+              # TODO need to invalidate presets hash for the device
               response.writeHead(200)
               response.end()
             )

          )
        else if request.method == 'DELETE'
          db.devicesCollection.update({'_id' : deviceId}, {'$pull' : {'_tags' : tag}}, {safe: true}, (err) ->
            if err
              response.writeHead(500)
              response.end(err)

          preset._id = presetName

          db.presetsCollection.save(preset, (err) ->
            db.memcached.del('presets', (err, res) ->
            )
            db.memcached.del('presets_hash', (err, res) ->
            )
            if err
