add inv_size as a ctor option