             opts.database.get_project_host
                 project_id : opts.project_id
                 cb         : (err, x) ->
-                    host = x?.host
+                    host = x
                     cb(err)
         (cb) ->
             if not host

            dbg('check that project is NOT currently opened LIVE')
            opts.database.get_project_host
                project_id : opts.project_id
                cb         : (err, x) ->
                    if err
                        cb(err)
                    else if x?.host
                        cb("project must not be open LIVE")
                    else
                        cb()

            dbg('make sure project is not already opened somewhere')
            opts.database.get_project_host
                project_id : opts.project_id
                cb         : (err, host) ->
                    if err
                        cb(err)
                    else
                        if host
                            cb("project already opened")
                        else
                            cb()
