cut: fix deprecation warnings