so should we set localStorage if sync is not enabled? Or can these commented out lines be removed?