set max_size for messages