add basic torrent support for swarm