add new method to path elements for current path in string format retrieval