per Axel, use int instead of unsigned int for enums, and be consistent about it