afaik we should be using `session` rather than `client`