 
-runtime = require '../src/runtime'
+runtime = require './runtime'
+common = require './common'
 
 ## Main
 program = require 'commander'

    .option('--forward stderr,stdout', "Forward these streams from child", String, 'stderr,stdout')
    .parse(process.argv)

  r = new runtime.Runtime program
  r.start (err, address, liveUrl) ->
    throw err if err
    console.log "msgflo started on #{address}"

  program
    .option('--host <hostname>', 'Host', String, 'localhost')
    .option('--port <port>', 'Port', Number, 3569)
    .option('--broker <uri>', 'Broker address', String, '')
    .option('--ide <uri>', 'FBP IDE address', String, 'http://app.flowhub.io')
    .option('--library <FILE.json>', 'Library configuration file', String, 'package.json')
    .option('--graph <file.json>', 'Initial graph to load', String, '')
