sampler now pickleable