add id to ResourceReference