change stub calls to get rid of deprecation warnings