simplify, flags is 24bits according to specs