update to the new deprecation API