move def of init/move into sampler.cpp