use non-deprecated version of this method
update due to ruby library changes