feature: add maxsize opts support