patch method that was only available in 2.7.0-beta1 and was removed in
2.7.0-beta2