               }
               return next()
 
-            log "#{type} RETRIEVED: #{site}"
+            log "#{type} RETRIEVED: #{site}".green
             cacheCount resp.headers, type
 
             RAW_DATA.SCRIPTS_LOADED++
             next()
-        ), done
+
+        if debug_mode
+          async.eachSeries scripts, script_iterator, done
+        else
+          async.each scripts, script_iterator, done
 
       # format errors to github markup, copy to clipboard
       compileErrors = (next) ->

                    if url and url not in SCRIPT_URLS
                      script = {type: 'CSS', url, site}
                      SCRIPT_URLS.push url
                      SCRIPTS.push script
                  when 'text/javascript'
                    url = attribs.src
                    if url and url not in SCRIPT_URLS
                      script = {type: 'JS', url, site}
                      SCRIPT_URLS.push url
                      SCRIPTS.push script
              onend: ->
                next()
            }
            parser.write body
            parser.end()
        ), ->
          done null, SCRIPTS

      # create URLs for package/main.js
      getPackageScripts = (scripts, next) ->
        pkg_scripts = []
        for {url, type, site} in scripts
          continue unless type is 'CSS'
          pkg = PKGtest.exec(url)?[1]
          continue unless pkg
          pkg_JS = "#{pkg}/main.js"
          if pkg_JS not in pkg_scripts
            scripts.push {site, type: 'JS', url: pkg_JS}
            pkg_scripts.push pkg_JS

        next null, scripts

      # request CSS and JS scripts
      loadScripts = (scripts, done) ->
        async.eachSeries scripts, ((script, next) ->
          {url, type, site} = script
          if url.match DOMAINtest
            url = "#{DOMAIN}#{url}"

    debug_mode = true if args[1] is 'debug'
    log 'DEBUG MODE' if debug_mode
    exit "must specify domain" unless DOMAIN
    PROCESSED_PACKAGE_SCRIPTS = []

    # connect to DB
    connect (user, db) ->
