move flag to global brackets object