handle deprecation warnings.