add better deprecation warnings