[master flag capturing stuff]