this allows the batch sampler to be removed for size reasons, or because you don't have logging enabled