adjust flags