watchFlags example