fix bugs in download helper. amazing it has!