remove deprecation warnings by using new stub syntax