first rev of resample, untested
woo resampling working