Revert "case sensitive flag hash comparisons"

This reverts commit b09b889a33e840602682cfd62996166bff71411c.