diff --git a/src/lib/sync.js b/src/lib/sync.js
index <HASH>..<HASH> 100644
--- a/src/lib/sync.js
+++ b/src/lib/sync.js
@@ -19,6 +19,8 @@ define([
 
   var settings = util.getSettingStore('remotestorage_sync');
 
+  // hack! set from remoteStorage via setAccess.
+  var access;
 
   // Section: How to configure sync
   //
@@ -881,6 +883,10 @@ define([
 
     setRemoteAdapter: function(adapter) {
       remoteAdapter = adapter;
+    },
+
+    setAccess: function(_access) {
+      access = _access
     }
 
   });
(temporarily) passing the 'access' object to sync via sync.setAccess