config update adjust to os