added xml generation