handles deprecations