xml output
work in progress