add resource attributes