fix deprections warnings

this fixes some deprecation warnings