remove unused array from json
add XML output for webservices