modify flags, allowed '00xxxx'