modified example to access a scan-level resource