fix misleading deprecation messages