added grouped history messages