adding xml output capabilities