added xml support