update references to entities and relations