improved handling of unused bytes in flag-names