make max_bytesize configurable