added xml loading features