         dbg()
         @_action
             action : 'start'
-            wait   : (project) -> project.state?.state == 'running'
+            goal   : (project) -> project.getIn(['state', 'state']) == 'running'
             cb     : cb
 
     restart: (opts) =>

        address =
            host         : @host
            port         : LOCAL_HUB_PORT
            secret_token : 'secret'   # TODO
        opts.cb(undefined, address)

    copy_path: (opts) =>
        opts = defaults opts,


        dbg("request action to happen")
        @client.database._query
            table     : 'projects'
            jsonb_set :
                action_request :
                    action  : opts.action
                    started : new Date()
