added authorization for sync