some work towards supporting more resamplers