modified resampler to work with the new framework
fix