added diffopt setting