set raise deprecation warning to false