adding support for changing xml and json response