change get path method

separate the policy into path structure
get all paths