can now toggle flags on gui