add deprecation warning to docs