 
 class LocalHub  # use the function "new_local_hub" above; do not construct this directly!
     constructor: (username, host, port, @project, cb) ->  # NOTE @project may be undefined.
-        winston.debug("Creating LocalHub(#{@username}, #{@host}, #{@port}, ...)")
+        winston.debug("Creating LocalHub(#{username}, #{host}, #{port}, ...)")
         if program.local
             @SAGEMATHCLOUD = ".sagemathcloud-local"
             # Do not timeout when doing development, since the enclosing project would already timeout... and

        else
            @SAGEMATHCLOUD = ".sagemathcloud"
        @connect(username, host, port, cb)

    connect: (username, host, port, cb) =>
        if not username? or not host? or not port?

                    winston.debug("local_hub --> hub: (connect) error -- #{err}, #{to_json(resp)}, trying to connect to '#{@path}' in #{@project_id}.")
                    if resp?.path? and resp?.path.indexOf("sage_server.port") != -1
                        err = "The Sage Worksheet server is not running.  The system may be very heavily loaded, you may have messed up a custom install of Sage, or caused problems by customizing your packages.  Make this work in the terminal: <pre> cd ~/.sagemathcloud\necho 'import sage_server, sage_salvus' | sage</pre> then restart the Sage Worksheet server.<br>Or contact <a href='mailto:wstein@uw.edu' target='_blank'>wstein@uw.edu</a> for help."
                    #@local_hub.reconnect()
                    cb?(err)
                else if resp.event == 'error'
                    cb?(resp.error)
