modify and add XML saver