add function to get a comparable service reference string (useable to