added support for returning JSON and XML