add xpath and cJSON