better method of getting resource identifiers