smarter setting of options