add maxsize in options