download script works, but need to fix where the output gets directed: