creates a reference for each resource