small update to if statemetns for support of nnopts_setup