new polyrat and fixes