add support for criterion 1.0
deprecation warning