added separate download and resample methods