changed the fire event to use single flags.