adjusted xml output and role attribute