added xpath support for ordering