         do synch
 
 
-
     Mines.all().then (values) ->
 
       scope.lists = []
 
       values.forEach (amine) ->
-        service = imjs.Service.connect root: amine.root
+        service = imjs.Service.connect amine
         service.fetchLists().then (lists) =>
 
-          lists = lists[0..5]
           for list in lists
               list.type = "List"
               list.id = list.title

          scope.$digest()

        service.fetchTemplates().then (templates) =>



          tosave = []


            value.type = "Template"
            tosave.push value

          scope.templates = scope.templates.concat tosave
          scope.$digest()

    do synch

  # Inline controller.
  Controllers.controller 'AuthController', Array '$rootScope', '$scope', 'Persona', (rs, scope, Persona) ->
