added heirarchy of locations and companies