improved detection of booleans in configuration