updated main patcher