work on path parse