in endpoint_spec, separated defaulting logic from the specific value we default to