update conf and insert flag to tty