related to issue #5395

Marco has noted the method is going to be depracte but i thought id try to do a quick patch