unique ids for tablerefs