patch build event