add check for large messages