pass opts for warn_deprecation