add path util methods.