             (mapc 'floobits-apply-edit edits)))))))
 
 (defun floobits-event-create_buf (req)
-  (let ((filename (floo-get-item req "path" ))
-        (username (floo-get-item req "username")))
+  (let ((filename (floobits--get-item req "path" ))
+        (username (floobits--get-item req "username")))
     (floobits-debug-message "User %s created buffer %s" username filename)))
 
 (defun floobits-event-follow_user (req)
-  (let ((username (floo-get-item req "username")))
+  (let ((username (floobits--get-item req "username")))
     (setq floobits-follow-mode t)
     (add-to-list 'floobits-follow-users username)))
 
 (defun floobits-event-delete_buf (req)
-  (let ((filename (floo-get-item req "path" ))
-        (username (floo-get-item req "username")))
+  (let ((filename (floobits--get-item req "path" ))
+        (username (floobits--get-item req "username")))
     (unless (string= filename "FLOOBITS_README.md")
       (message "User %s deleted buffer %s" username filename))))
 
 (defun floobits-event-get_buf (req)
-  (floo-when-buf (get-file-buffer (floo-get-item req "full_path"))
+  (floo-when-buf (get-file-buffer (floobits--get-item req "full_path"))
                  (atomic-change-group
                    (delete-region 1 (+ 1 (buffer-size)))
-                   (insert (floo-get-item req "buf")))))
+                   (insert (floobits--get-item req "buf")))))
 
 (defun floobits-event-open_file (req)
-  (find-file (floo-get-item req "filename")))
+  (find-file (floobits--get-item req "filename")))
 
 (defun floobits-event-message (req)
-  (message "%s" (floo-get-item req "message")))
+  (message "%s" (floobits--get-item req "message")))
 
 (defun floobits-event-rename (req)
-  (let* ((new-name (floo-get-item req "new_name"))
-         (old-name (floo-get-item req "full_path"))
+  (let* ((new-name (floobits--get-item req "new_name"))
+         (old-name (floobits--get-item req "full_path"))
          (buf (get-file-buffer old-name)))
     (when buf
       (if (get-buffer new-name)

  (if (active-minibuffer-window)
      (push req floobits-user-input-events)
    (let
        ((prompt (floo-get-item req 'prompt))
         (initial (floo-get-item req 'initial))
         (choices (floo-get-item req 'choices))
         (dir (floo-get-item req 'dir)))
      (floo-set-item 'req 'response
                     (cond
                      (choices (completing-read prompt (mapcar (lambda (x) (append x nil)) choices) nil t initial))
                      ((floo-get-item req 'y_or_n) (y-or-n-p prompt))
                      (dir (read-directory-name prompt nil initial))
                      (t (read-from-minibuffer prompt initial))))
      (floobits-send-to-agent req 'user_input))))

(defun floobits-event-rename_buf (req)
  (let* ((old-path (floo-get-item req 'old_path))
         (new-path (floo-get-item req 'path))
         (buf (get-file-buffer old-path)))
    (rename-file old-path new-path 1)
    (when buf

  (let* ((json-key-type 'string)
         (json-false 'nil)
         (req (json-read-from-string text))
         (event (floobits--get-item req "name"))
         (func (concat "floobits-event-" event)))
    (if (fboundp (intern-soft func))
        (funcall (read func) req)
