make patches self-contained.