                     get_blob(uuid:opts.uuid, cb:opts.cb, max_retries:opts.max_retries-1)
                 setTimeout(f, 300)
             else
-                if result?
-                    dbg("got the blob")
-                else
+                if not result?
                     dbg("no such blob")
                 opts.cb(undefined, result)
 


        pathname = pathname.slice(program.base_url.length)

        if pathname != '/alive'
            winston.info("#{req.connection.remoteAddress} accessed #{req.url}")
            winston.info("pathname='#{pathname}'")

        segments = pathname.split('/')
        switch segments[1]

            process.exit()
    else
        console.log("Running web server; pidfile=#{program.pidfile}")
        # logFile = /dev/null to prevent huge duplicated output that is already in program.logfile
        daemon({pidFile:program.pidfile, outFile:program.logfile, errFile:program.logfile, logFile:'/dev/null', max:30}, start_server)
