change name of 'ClientOpts' to 'EndpointOpts'