patchin: quilt fixes and improvements