getPath refactory+