added xml position recording