added xml json support