add deprecation warning back