add support for the minimize option