adapt to the new version of lib-client