fix throw breaks saving, caused by buffer not big enough in temporaryMessages; -Wall fixes