     if com=="resource"
       resource_name = params.shift()
 
-      config = yaml.safeLoad(fs.readFileSync(data_definition_path, 'utf8'))
+      config = getConfig()
+
       provider = config.resourceProviderUid
       bucket = config.bucket
 


    com = params.shift()

    readConfig = () ->
      try return fs.readFileSync(data_definition_path, 'utf8')
      catch e
        console.log "you must first init dolandb with command 'steroids dolandb init'"


    doc.resources.push res

    fs.writeFile(data_definition_path, yaml.safeDump(doc), (err,data) ->
      console.log 'resource created'
    )
