attempt to fix monkeypatching; it doesn't work