streamline message size handling