restoring xquery file needed by cts api