     code = compile(@findAppropriate(toAbsPath(name, reqFolders), domain))
     detective(code)
 
-  findAppropriate : (absPath, domain) -> # what domain are we scanning?
+  findAppropriate : (absReq, domain) ->
     orderedPaths = [domain].concat @domainPaths.filter((e) -> e isnt domain) # means this domain is scanned first, else order is preserved
     for path in orderedPaths
-      return
-      #fs. check if path+file is an existing file, if it is return the compiled version of it + THE DOMAIN WE FOUND IT ON SO DETECTIVE KNOWR WHERE TO LOOK
+      fs. path + absReq
     throw new Error("require call for #{file} not found on any of the client require domains", @domainPaths)
     return
-
-    #cant use the require algorithms, but needs to know current domain for relative require strings
-    # this should construct an ABSOLUTE path (which can be the ambiguous absolute version my require uses)
 
 
   getTree : () ->

  if name[0...2] is './' # relative path
    name = name[2...]
    while name[0...3] is '../'
      reqFolders = reqFolders[0...-1] # slice away the top folder every time we see a '../' string (NB: currently allows excessive ups as slice is always legal - but illegal on client)
      name = name[3...]
  prependStr = if reqFolders.join('/') then reqFolders.join('/')+'/' else ''
  absPath = prependStr+name


class Resolver

  smallTree = sanitizeTree tree
  console.log getReadableDep(smallTree)
  return
