comply with the API change of registerWithClientInfo: