split out monkeypatched methods into helper