added xml reading