fixes some deprecation warnings