avoid too long messages by IOException