add patch flags