         socialapidata = data
         queue.fin()
     ->
-      bongoModels.JCustomPartials.one selector, (err, partial)->
-        customPartial = partial.data  if not err and partial
-        queue.fin()
-    ->
       bongoModels.JGroup.one {slug : slug or 'koding'}, (err, group) ->
         console.log err if err
+        if group
+          currentGroup = group
 
-        bongoModels.JReferralCampaign.one isActive: yes, (err, campaignData_)->
-          if not err and campaignData_ and campaignData_.data
-            campaignData = campaignData_.data
-
-          if group
-            currentGroup = group
-
-          queue.fin()
+        queue.fin()
     ->
       bongoModels.JWorkspace.fetch client, {}, (err, workspaces) ->
         console.log err  if err

    </script>

    <script>KD.config.usePremiumBroker=#{usePremiumBroker}</script>
    <script>KD.customPartial=#{encodedCustomPartial}</script>
    <script>KD.campaignData=#{encodedCampaignData}</script>
    <script>KD.socialApiData=#{encodedSocialApiData}</script>
    <script>KD.userMachines=#{userMachines}</script>
    <script>KD.userWorkspaces=#{userWorkspaces}</script>

  {argv} = require 'optimist'

  prefetchedFeeds  = null
  socialapidata    = null
  currentGroup     = null
  userMachines     = null
