                     @logger.info "Found team! #{t.id}"
                     @teamID = t.id
                     break
-            @loadUsersList() # FIXME
+            @loadUsers()
+            @loadChannels()
             @connect() # FIXME
 
     channelRoute: (channelId) ->

        @logger.info 'Loading ' + uri
        @_apiCall 'GET', uri, null, @_onTeams

    loadUsersList: ->
        # Load userlist
        uri =  "/users?per_page=200&in_team=#{@teamID}"
        @logger.info 'Loading ' + uri
        @_apiCall 'GET', uri, null, @_onProfiles
        @logger.info 'Loading ' + uri
        uri = "/users/me/teams/#{@teamID}/channels"
        @_apiCall 'GET', uri, null, @_onChannels



            @authenticated = false
            @reconnect()

    _onLoadUsers: (data, headers, params) =>
        if data && not data.error
            for user in data
              @users[user.id] = user
            @logger.info 'Found '+Object.keys(data).length+' profiles.'
            @emit 'profilesLoaded', data
            if Object.keys(data).length > 0 && params.page?
              @loadUsers(params.page+1) # Trigger next page loading
        else
            @logger.error 'Failed to load profiles from server.'
            @emit 'error', { msg: 'failed to load profiles'}

    _onChannels: (data, headers, params) =>
        if data && not data.error
            for channel in data
              @channels[channel.id] = channel
