apply jm patch