added ability to sync securely