just a few fixes for the torrent client