 Team = mongoose.model 'Team'
 Person = mongoose.model 'Person'
 
-queue = async.queue (team, next) ->
+createTeam = (team, next) ->
   # skip empty teams
   return next() if team.peopleIds.length is 0
 
   async.waterfall [
     (next) ->                 # create repo
+      console.log team.slug, 'create repo'
       request.post
         url: github 'orgs/nko3/repos'
         json:

          private: true
      , next
    (res, body, next) ->      # create push hook
      return next(null, null, null) unless body.id
      request.post
        url: github "repos/nko3/#{team.slug}/hooks"
        json:

            content_type: 'json'
      , next
    (res, body, next) ->      # create team
      return next(Error(JSON.stringify(body))) unless body.id

      console.log team.slug, 'create team'
      request.post
        url: github 'orgs/nko3/teams'
        json:
