build patches by dga