add a monotonically increasing ID to all resources