     _onProfiles: (data, headers) =>
         if data && not data.error
             @users = data
-            @logger.debug 'Found '+Object.keys(@users).length+' profiles.'
+            @logger.info 'Found '+Object.keys(@users).length+' profiles.'
             @emit 'profilesLoaded', { profiles: @users }
         else
             @logger.error 'Failed to load profiles from server.'

    _onChannels: (data, headers) =>
        if data && not data.error
            @channels = data
            @emit 'channelsLoaded', { channels: @channels }
        else
            @logger.error 'Failed to get subscribed channels list from server.'
            @emit 'error', { msg: 'failed to get channel list'}

    _onPreferences: (data, headers) =>
        if data && not data.error
            @preferences = data
            @emit 'preferencesLoaded', { preferences: @preferences }
            @logger.debug 'Loaded Preferences...'

    _onMe: (data, headers) =>
        if data && not data.error
            @me = data
            @emit 'meLoaded', { me: @me }
            @logger.debug 'Loaded Me...'

    _onTeams: (data, headers) =>
        if data && not data.error
            @teams = data
            @emit 'teamsLoaded', { teams: @teams }
            @logger.debug 'Found '+Object.keys(@teams).length+' teams.'
            for t in @teams
                @logger.debug "Testing #{t.name} == #{@group}"
                if t.name.toLowerCase() == @group.toLowerCase()
                    @logger.debug "Found team! #{t.id}"
                    @teamID = t.id
                    break
            @loadUsersList() # FIXME

        chunks = @_chunkMessage(postData.message)
        postData.message = chunks.shift()

        @_apiCall 'POST', '/posts', postData, (data, header) =>
            @logger.debug 'Posted message.'

            if chunks?.length > 0
