fixed the download part to match the pcache manner