handle deprecations