modify creation of embedded resources