 	buildRIndex: (callback) ->
 		apt_packages = Indexer.getAptCranPackages()
 		apt_names = _.keys(apt_packages)
-		console.log ">> got all apt-cran packages"
+		logger.log count: apt_names.length, ">> got all apt-cran packages"
 
 		Indexer.getRemoteCranPackages (err, cran_packages) ->
 			if err?
 				return callback err
-			console.log ">> got all cran packages"
 			cran_names = _.keys(cran_packages)
+			logger.log count: cran_names.length, ">> got all cran packages"
 			Indexer.getBioConductorPackages (err, bioc_packages) ->
 				if err?
 					return callback err
-				console.log ">> got all bioconductor packages"
 				bioc_names = _.keys(bioc_packages)
+				logger.log count: bioc_names.length, ">> got all bioconductor packages"
 
 				r_packages = {}
 				# merge
 				apt_only = _.difference(apt_names, cran_names)
 				cran_only = _.difference(cran_names, apt_names)
 				apt_and_cran = _.intersection(apt_names, cran_names)
-				console.log ">> #{apt_only.length} - #{cran_only.length} - #{apt_and_cran.length} - #{bioc_names.length}"
 
 				# merge all into index
 				for name in bioc_names

					callback null
			)



if require.main == module
	console.log ">> building package index..."
	args = process.argv.slice(2)
	Indexer.build (err, result) ->
		if err

fs = require 'fs'
child_process = require 'child_process'
logger = require 'logger-sharelatex'
request = require 'request'
cheerio = require 'cheerio'
_ = require 'underscore'
