adds resource embedding