refactored sync clients, verified that registration and syncing work.