better pattern matching
put torrents in class