     return '' unless name
     return '' if name is 'noflo'
     name = name.replace /\@[a-z\-]+\//, '' if name[0] is '@'
-    name.replace /^noflo-/, ''
+    return name.replace /^noflo-/, ''
 
   # Get the list of all available components
   listComponents: (callback) ->

  createComponent: (name, component, metadata, callback) ->
    implementation = component
    unless implementation
      return callback new Error "Component #{name} not available"

    # If a string was specified, attempt to `require` it.
    if typeof implementation is 'string'
      if typeof registerLoader.dynamicLoad is 'function'
        registerLoader.dynamicLoad name, implementation, metadata, callback
        return
      return callback Error "Dynamic loading of #{implementation} for component #{name} not available on this platform."

    # Attempt to create the component instance using the `getComponent` method.
    if typeof implementation.getComponent is 'function'
      try
        instance = implementation.getComponent metadata
      catch e
        return callback e
    # Attempt to create a component using a factory function.
    else if typeof implementation is 'function'
      try
        instance = implementation metadata
      catch e
        return callback e
    else
      callback new Error "Invalid type #{typeof(implementation)} for component #{name}."
      return

    fullName = @normalizeName packageId, name
    @components[fullName] = cPath
    do callback if callback
    return

  # With the `registerGraph` method you can register new
  # graphs as loadable components.
  registerGraph: (packageId, name, gPath, callback) ->
    @registerComponent packageId, name, gPath, callback
    return

  # With `registerLoader` you can register custom component
  # loaders. They will be called immediately and can register
  # any components or graphs they wish.
  registerLoader: (loader, callback) ->
    loader @, callback
    return

  # With `setSource` you can register a component by providing
  # a source code string. Supported languages and techniques
