temp refactor of downloads to improve heroku memory usage