implement for get path text