set/remove flag_running