updates config file