got rid of "enumeration values not handled in switch" warnings.