clean up
resample: add convenience wrappers