setting messages per thread