implement the basic arch of JPath class