 
         currentGroup = group  if group
 
-        next()
+        fin()
 
-    (next) ->
+    (fin) ->
       bongoModels.JWorkspace.fetchByMachines$ client, (err, workspaces) ->
         console.log err  if err
         userWorkspaces = workspaces or []
-        next()
+        fin()
 
-    (next) ->
+    (fin) ->
       bongoModels.JMachine.some$ client, {}, (err, machines) ->
         console.log err  if err
         userMachines = machines or []
-        next()
+        fin()
 
-    (next) ->
+    (fin) ->
       bongoModels.Sidebar.fetchEnvironment client, (err, data) ->
         userEnvironmentData = data
-        next()
+        fin()
 
-    (next) ->
+    (fin) ->
       client.connection.delegate.fetchUser (err, user) ->
         if err
           console.error '[scriptblock] user not found', err
-          return next()
+          return fin()
 
         if user then userId = user.getId()
         else console.error '[scriptblock] user not found', err
-        next()
+        fin()
   ]
 
-  dash queue, -> callback null, createHTML(), socialapidata
+  async.parallel queue, -> callback null, createHTML(), socialapidata

# coffeelint: disable=cyclomatic_complexity
module.exports = (options = {}, callback) ->

  { dash }  = require 'bongo'
  encoder   = require 'htmlencode'
  { argv }  = require 'optimist'



  queue = [

    (fin) ->
      socialApiCacheFn = require '../cache/socialapi'
      socialApiCacheFn options, (err, data) ->
        console.error 'could not get prefetched data', err  if err
        socialapidata = data
        fin()

    (fin) ->
      groupName = session?.groupName or 'koding'

      # due to some reason, I suspect JSON.stringify somewhere, undefined
