create and configure the client.