   serverCount = serverList.length
 
   _.each serverList, (server) ->
-    queryServer server, (currentBranch) ->
-      if currentBranch
-        newResults[server] = currentBranch
+    queryServer server, (currentBranches) ->
+      if currentBranches
+        newResults[server] = currentBranches
       else
         serverCount--;
 

  # test for forward or backward slashes, aka things that shouldn't be in a branch
  # if found, rerun branch check
  validateResponse = (response) ->
    response = if response.length then response.pop().split('Pinnaclebranch:')[1].split('Contrabranch:')[0] else 'logout'

    unless /\\|\/|logout|HEAD/.test response
      callback response
    else if connAttempts >= maxAttempts
      callback false
    else
      do printLineBreak
      console.info 'uh-oh, SSH branch check ' + connAttempts + ' of ' + maxAttempts + ' for server ' + server + ' returned bad data\ntrying again'

app = do express

github = GitHub.client
  username: githubAuth.username
  password: githubAuth.password

githubRepo  = 'Thrillist/Pinnacle'
pinnacle    = github.repo githubRepo

queryIntervalInMinutes = 2
queryInterval = 1000 * 60 * queryIntervalInMinutes
serverResults = {}
lastChange    = 0
