refactor cookie check, change quotation marks