reduce methods, format exported xml