add base to cookie