       (pausing-live-mode
         (reload-module module
                        (copy dll
-                             (file "." (new-dll-name dll)))))
+                             (file "." (.getName dll)))))
       (notify-user true "Finished reloading " module "!"))))
 
 (defn reload-modules-on-device-adapter-change

   stop-following function." 
  [date-atom path]
  (reset! date-atom (file-dates path))
  (let [keep-following (atom true)]
    (future
      (while @keep-following

    (when live-mode#
      (.enableLiveMode gui true))))

(defn reload-updated-module
  "Unload a module, copy the new version to the Micro-Manager
   directory (overwriting the old version), and then load the module again."
