       return LinkShell
 
     # parse link into a location object
-    location = acorn.util.parseUrl(link)
+    location = acorn.util.parseUrl link
 
     # filter out shell modules that don't derive from LinkShell
     shells = _.filter acorn.shells, (shell) ->

  # Functions in this section are useful in dealing with
  # shells based on LinkShell

  # Returns true if `link` matches pattern contained in array `validLinkPatterns`
  # Returns false otherwise
  linkMatches: (link, validLinkPatterns) ->
    (_.find validLinkPatterns, (pattern) -> pattern.test link)?

        return bestShell
      else return shell

    _.reduce matchingShells, reduceFn, LinkShell


# select functions above, attached to acorn namespace
