master apply patch