instantiate referenced entities only once