add min/max options, start of lin/exp code