tweaked getting the configuration from the cookie