better deprecation warnings