             contentType: "application/octet-stream"
             dataType: "json"
             url: "https://api-content.dropbox.com/1/files_put/sandbox/meta.seed"
-            data: Sync.exportData()
+            data: JSON.stringify(result[0])
             beforeSend: (xhr) ->
               xhr.setRequestHeader 'Authorization', 'Bearer ' + localStorage.Token
           ).done (data) ->
             console.log("all done! Delete the queue")
-            localStorage.Queue = '{"Note": {}, "Notebook": {}}'
+            Sync.queue = {"Note": {}, "Notebook": {}}
+            Sync.saveQueue()
 
     ).error (data) ->
       if data.status is 401


  importData: (obj) ->
    input = JSON.parse(obj)
    Note.refresh(input.Note)
    Notebook.refresh(input.Notebook)

  # Merges the client & server, using a queue
  # Spits out the result, id changes & fs changes

      beforeSend: (xhr) ->
        xhr.setRequestHeader "Authorization", "Bearer " + localStorage.Token
    ).done((data) ->
      console.log(JSON.parse(Sync.exportData()), data, JSON.parse(localStorage.Queue))
      result = Sync.merger(JSON.parse(Sync.exportData()), data, Sync.Queue)

      console.log(result)

