                  (:cljs changed-source-file-paths))))))
 
 (let [root (norm-path (.getCanonicalPath (io/file ".")))]
-  (defn relativize-resource-paths
+  (defn remove-root-path 
     "relativize to the local root just in case we have an absolute path"
-    [{:keys [resource-paths]}]
-    (mapv #(string/replace-first (norm-path %)
-                                 (str (norm-path root)
-                                      "/") "") resource-paths)))
-
-(defn remove-resource-path [{:keys [http-server-root] :as state} path]
-  (let [path' (norm-path path)
-        rp (first (filter (fn [x] (.startsWith path' (str x "/" http-server-root)))
-                          (relativize-resource-paths state)))
-        to-remove (str rp "/" http-server-root)]
-    (string/replace path' to-remove "")))
-
-(defn ns-to-server-relative-path
-  "Given the state and a namespace makes a path relative to the server root.
-  This is a path that a client can request. A caveat is that only works on
-  compiled javascript namespaces."
-  [{:keys [output-dir] :as state} ns]
-  (let [path (.getPath (bapi/cljs-target-file-from-ns output-dir ns))
-        p    (remove-resource-path state path)]
-    (if (not= (first p) \/)
-      (str "/" p)
-      p)))
-
-(defn make-serve-from-display [{:keys [http-server-root] :as opts}]
-  (let [paths (relativize-resource-paths opts)]
-    (str "(" (string/join "|" paths) ")/" http-server-root)))
+    [path]
+    (string/replace-first (norm-path path) (str root "/") "")))
 
 (defn file-changed?
   "Standard md5 check to see if a file actually changed."

  (keep
   #(when (file-changed? st %)
      { :dependency-file true
        :file (remove-resource-path st %) })
   (dependency-files st)))

(defn make-sendable-file
  "Formats a namespace into a map that is ready to be sent to the client."
  [st nm]
  (let [n (-> nm name underscore)]
    { :file (ns-to-server-relative-path st n)
      :namespace (cljs.compiler/munge n)
      :meta-data (meta nm) }))


  .ie a file that starts with (ns example.path-finder) -> example.path_finder"
  [file-path]
  (try
    (when (.exists (as-file file-path))
      (with-open [rdr (io/reader file-path)]
        (-> (java.io.PushbackReader. rdr)
