misc fixes and move stuff around
take downsampling out of do_task.py