enum detection bit more foolproof