added xpath option