updated monkey patch