removed undefined Private and made the mod patcher compatible