logic added to options setup