change cookie to use settings