crack at adding iname_refs dictionary, not used yet