adding print statement to resampler
fixing missing imports and unused vars