added the getClient method to the provider.