examples for applying local patches