apply patch if existing