added xml and json responses