old_contents: // CLI tools
  var bluebird  = require('bluebird');
  var debug     = require('debug')('index');
  var size      = 20;
  
  // requires parameters
  var page      = process.env.batch || 1;
  var startDate = process.env.start;
  var dataDir   = process.env.dataDir;
  debug(page, startDate, dataDir);
  var gigatool  = require('./lib/gigatool')(size, page, dataDir);
  
  bluebird.all([gigatool.clean(startDate), gigatool.continuous()])
    .finally(function(){
      process.exit(0);
    });
new_contents: #!/usr/bin/env node
  
  var bluebird  = require('bluebird');
  var gigatool  = require('./lib/gigatool');
  var debug     = require('debug')('index');
  var size      = 20;
  
  var page      = process.env.BATCH;
  var startDate = process.env.START;
  var dataDir   = process.env.DATADIR;
  debug(page, startDate, dataDir);
  
  // requires parameters
  if (!process.env.BATCH) {
    throw new Error('BATCH environment variable is needed');
  }
  
  tool = gigatool(size, page, dataDir);
  
  module.exports = bluebird.all([tool.clean(startDate), tool.continuous()])
    .finally(function(){
      if (!process.env.TEST) {
        process.exit(0);
      }
    });
subject: change env vars to uppercase and expose runners