avoid a few deprecation warnings