class name changes,history function added to retrieve older messages