sync for offline storage