update for download with new api