now with lists of results and xml output