sampler now pickle-able