updated handling of boolean options