backport Module monkey patches