start changing code to use promises for searching torrents