refactored to build path for items from names of it parents