init the client with configuration