flags update to include visibility.