modify some flags