added 8 flags, updated 2