an attempt to move gem monkeypatches out of the codebase