add method getRootStep to path entity