update for typed flags