started adjusting xquery wraper named XQuery from old POC