             (mapcar apply-edit edits)))))))
 
 (defun floobits-event-get_buf (req)
-  (let ((filename (cdr (assoc "full_path" req))))
+  (let ((filename (floo-get-item req "full_path" )))
     (if (not (eq filename nil))
       (find-file filename)
     (message "filename does not exist for buffer %s" (floo-get-item req 'id)))))

  (message "%s left the room" (floo-get-item req 'username)))

(defun floobits-event-edit (req)
  (let* ((filename (cdr (assoc "full_path" req)))
    (buf (get-file-buffer filename))
    (edits (cdr (assoc "edits" req)))
    (apply-edit (lambda (edit)
      (let* ((inhibit-modification-hooks t)
        (edit-start (+ 1 (elt edit 0)))


(defun floobits-event-room_info (req)
  (message "Successfully joined room %s" floobits-room)
  (message "project path is %s" (floo-get-item req 'project_path))
  (dired (floo-get-item req "project_path")))

(defun floobits-event-join (req)
  (message "%s" req)
