added xml stuff