docs: function bin (argv) {
    debug('start')
  
    // setup config
    process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'
  
    var uri = process.argv[2] || 'https://localhost:3000/random_rate'
    var cert = process.argv[3] || process.env['CERT']
    var display = process.argv[4] || process.env['DISP'] || 'display'
    var mode = process.argv[5] || 'buffer'
    var user = process.argv[6] || 'http://melvincarvalho.com/#me'
    var tag = process.argv[7]
    var bufferURI = process.argv[8] || 'https://localhost/data/buffer/video/'
    root = process.argv[9] || root
    var safe = process.argv[10] || 'on'
  
    debug(argv)
  
    console.log(process.argv)
    console.log('tag', tag)
    console.log('bufferURI', bufferURI)
    console.log('webid', user)
  
    var config = require(__dirname + '/../config/config.js')
  
    getMedia(uri, cert, mode, user, safe, bufferURI).then(function (row) {
      var uri = row.uri
      var cacheURI = row.cacheURI
      var displayURI = cacheURI || uri
      var cmd = display + ' ' + displayURI
  
      debug('cmd', cmd)
      debug('row', row)
      exec(cmd)
      var params = { cacheURI: cacheURI }
      params.reviewer = user
      updateLastSeen(params, config)
    }).catch(function (err) {
      console.error(err)
    })
  }