initial torrent wrapper implementation