add resource and back references