format: fix deprecations