apply patches in config