detect deprecation flag