added XML stuff