add patches and extensions