add method to set max message size