fix few occurances of removed deprecated method

commit d58d0525eb8ef71975ad75431e3de14581dc45ed broke few files