added xml reading and storing