update some flags