remove deprecation warnings in core and examples