             host    : required
             mesg    : undefined
             timeout : 15
+            project : undefined
             cb      : required
 
         dbg = @dbg("call(#{opts.host})")


start_server = (cb) ->
    winston.debug("start_server")
    async.series [read_secret_token, init_sqlite_db, start_tcp_server], (err) ->
        if err
            winston.debug("Error starting server -- #{err}")
        else

                    cb   : (err, s) =>
                        socket = s; cb(err)
            (cb) =>
                if opts.project
                    opts.project._socket_id = socket.id
                socket.write_mesg 'json', opts.mesg, (err) =>
                    if err
                        cb("error writing to socket -- #{err}")
