adjust NewClient to match API change