add path segments support to path