changed search from JSON to XML