changed logic for registering identities and for sync