changed config update code