add minimal support for deprecation flag