properly compose the resource path
fetch identifier properly; remove spurious line