s3:client: make use of cli_state_protocol()