fixed bug with boolean switch options (closes #48)