notes on patching modules