cleaned up support storing in cookie