fix: fix deprecation warnings