             type: 'blocks'
             id: gist.id
             body: es
-          , (err, response) ->
+          , (err) ->
             console.log "indexed", gist.id
-            return gistCb(err, response)
+            return gistCb(err)
         else
           return gistCb()
     else

        index: 'blockbuilder'
        type: 'blocks'
        id: gist.id
      , (err, response) ->
        if err
          # post to elastic search, we don't have it indexed yet
          client.index


elasticsearch = require('elasticsearch')
esConfig = require('./config.js').elasticsearch
client = new elasticsearch.Client {
  host: esConfig.host,
  log: 'trace'
}

# number of missing files
missing = 0
