added message size control