readded some vminpoly functionality