flag checks