cleaned up json and xml output