include patches and update metadata