patch command must run last