   require('./libs/Microsoft.coffee').login(@, ARGS[0], ARGS[1])
 
 casper.thenOpen DASHBOARD, openDashboard = ->
-  [offers, ARGS[2], facebookLogin] = @evaluate (examineDashboard = (offers, queryCount, facebookLogin) ->
+  [offers, ARGS[2], facebook] = @evaluate (examineDashboard = (offers, queryCount, facebook) ->
     for e in document.querySelectorAll 'ul.row li a div.check-wrapper div.open-check'
       elem = e.parentNode.parentNode
       title = elem.querySelector('.title').innerText

    userAgent: hexBot.userAgent
)
DASHBOARD = 'http://www.bing.com/rewards/dashboard'
offers = []; executed = 0; facebookLogin = false

argData = [{name:'email'}, {name:'password'}, {name:'queryCount',default:0},
           {name:'minTime',default:20}, {name:'maxTime',default:40}]

            word = word[0].toUpperCase() + word[1..-1] # randomly capitalize word
        # query bing with the word
        @thenOpen "http://www.bing.com/search?scope=web&setmkt=en-US&q=#{word}", (data) ->
          @echo "#{if data['status'] is 200 then ++executed else 'Failed'}#{if gen then '-gen' else ''}) #{word}"

casper.thenOpen DASHBOARD, getTotalPoints = -> # get the number of unused points on the account
  totalPoints = @getElementInfo('#user-status .user-balance .data-value-text').text
