added callback to download