add min_size option