make xml export work again (still broken)