addresses some deprecation warnings