simplify flag reporting and correct it so it properly displays old flags