 
     com = params.shift()
 
-    readConfig = () ->
+    getConfig = () ->
+      yaml.safeLoad readConfigFromFile()
+
+    readConfigFromFile = () ->
       try return fs.readFileSync(data_definition_path, 'utf8')
       catch e
         console.log "you must first init dolandb with command 'steroids dolandb init'"


    if com=="raml"
      @composer.headers["Accept"] = "text/yaml"
      url = "/app/#{@getAppId()}/raml?identification_hash=74d6cf00e52215801b6f9968e916c4558da4a79fd4026268b3e5f2cb12e7e90f"
      @composer.get(url, (err, req, res, obj) =>
        raml_file_content = res['body']

        console.log raml_file_content

        stream = fs.createWriteStream('www/local.raml')
        stream.once('open', (fd) ->
          stream.write raml_file_content
          stream.end()
        )
      )

    if com=='sync'
      raml = fs.readFileSync('www/local.raml', 'utf8')

      console.log raml

      doc = yaml.safeLoad(fs.readFileSync(data_definition_path, 'utf8'))
      if doc.browser_id?
        # browser instance exists
        DbBrowser.put("ramls/#{doc.browser_id}", {raml:{content:raml} }, (err, res, body) =>


    if com=='provision'

      config = getConfig()

      if config.resourceProviderUid?
        console.log 'dolanddb provider exists already'
