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

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

            dbg('determine current location of project')
            opts.database.get_project_host
                project_id : opts.project_id
                cb         : (err, host) ->
                    source = host
                    if err
                        cb(err)
                    else
                        if not source
                            cb("project not opened, so can't move")
                        else if source == opts.target
