copied versions from phylesystem-1