     @authError = null
 
     @sandbox = options.sandbox or false
-    @apiServer = options.server or 'https://api.dropbox.com'
-    @authServer = options.authServer or @apiServer.replace('api.', 'www.')
-    @fileServer = options.fileServer or
-        @apiServer.replace('api.', 'api-content.')
+    @apiServer = options.server or @defaultApiServer()
+    @authServer = options.authServer or @defaultAuthServer()
+    @fileServer = options.fileServer or @defaultFileServer()
 
     @setupUrls()
 

       @authState isnt DropboxClient.RESET and
       @authState isnt DropboxClient.DONE
      value.authState = @authState
    value

  # Authenticates the app's user to Dropbox' API server.

    params = @oauth.addAuthParams 'POST', @urls.accessToken, {}
    DropboxXhr.request 'POST', @urls.accessToken, params, null, callback

  # @return {String} the URL to the default value for the "server" option
  defaultApiServer: ->
    'https://api.dropbox.com'

  # @return {String} the URL to the default value for the "authServer" option
  defaultAuthServer: ->
    @apiServer.replace 'api.', 'www.'

  # @return {String} the URL to the default value for the "fileServer" option
  defaultFileServer: ->
    @apiServer.replace 'api.', 'api-content.'

