add explicit deprecation warning