add torrent download functionality